shithub: npe

Download patch

ref: 264cbeaa3965e4f2e8cb5f54019635b6e4cc87ea
parent: 0b05fd337e6dc99755c4d8ff860f6848c3fdab1a
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Mar 17 03:35:55 EDT 2021

sdl2: SDL_SetTextureColorMod nop stub

--- a/include/npe/SDL2/SDL.h
+++ b/include/npe/SDL2/SDL.h
@@ -121,6 +121,7 @@
 int SDL_SaveBMP(SDL_Surface *s, const char *file);
 void SDL_ClearError(void);
 int SDL_SetTextureAlphaMod(SDL_Texture *texture, Uint8 alpha);
+int SDL_SetTextureColorMod(SDL_Texture *texture, Uint8 r, Uint8 g, Uint8 b);
 int SDL_OpenURL(char *url);
 
 enum {
--- a/libnpe_sdl2/sdl2.c
+++ b/libnpe_sdl2/sdl2.c
@@ -549,6 +549,15 @@
 }
 
 int
+SDL_SetTextureColorMod(SDL_Texture *t, Uint8 r, Uint8 g, Uint8 b)
+{
+	/* FIXME */
+	USED(t, r, g, b);
+
+	return -1;
+}
+
+int
 SDL_RenderClear(SDL_Renderer *)
 {
 	if(back != nil)