shithub: npe

Download patch

ref: 567a3d7ff04f271acccf1c3e92c888c70bdbe3bb
parent: bab90b31049f285144fa4cada3c9985b7e1d7b65
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Mar 17 03:22:42 EDT 2021

sdl2: SDL_SetTextureAlphaMod nop stub

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