From 5c9e11b2fcdf6360718514d9e50fc58a07cb49a3 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 11 Dec 2020 01:20:23 +0100 Subject: [PATCH] added previously static function to header file --- src/libgame/sdl.c | 2 +- src/libgame/sdl.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index a2fe9ab5..9755aaa4 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -338,7 +338,7 @@ static boolean SDLHasAlpha(SDL_Surface *surface) return (blend_mode == SDL_BLENDMODE_BLEND); } -static void SDLSetAlpha(SDL_Surface *surface, boolean set, int alpha) +void SDLSetAlpha(SDL_Surface *surface, boolean set, int alpha) { SDL_BlendMode blend_mode = (set ? SDL_BLENDMODE_BLEND : SDL_BLENDMODE_NONE); diff --git a/src/libgame/sdl.h b/src/libgame/sdl.h index 4fec8030..a5271c81 100644 --- a/src/libgame/sdl.h +++ b/src/libgame/sdl.h @@ -391,6 +391,7 @@ typedef struct UserEventInfo UserEvent; // SDL function definitions +void SDLSetAlpha(SDL_Surface *, boolean, int); const char *SDLGetRendererName(void); boolean SDLSetNativeSurface(SDL_Surface **); SDL_Surface *SDLGetNativeSurface(SDL_Surface *); -- 2.34.1