shithub: npe

Download patch

ref: 26fb9efad94baf092631367484fec70de63439a4
parent: 264cbeaa3965e4f2e8cb5f54019635b6e4cc87ea
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Mar 17 03:36:48 EDT 2021

sdl2: SDL_Color type

--- a/include/npe/SDL2/SDL.h
+++ b/include/npe/SDL2/SDL.h
@@ -29,6 +29,7 @@
 typedef int SDL_RendererFlip;
 typedef struct SDL_DisplayMode SDL_DisplayMode;
 typedef int SDL_SystemCursor;
+typedef union SDL_Color SDL_Color;
 
 #pragma incomplete SDL_Cursor
 #pragma incomplete SDL_PixelFormat
@@ -446,6 +447,12 @@
 	int w;
 	int h;
 	int refresh_rate;
+};
+
+union SDL_Color {
+	struct {
+		Uint8 r, g, b, a;
+	};
 };
 
 #endif