From: Holger Schemel Date: Fri, 11 Dec 2020 00:20:23 +0000 (+0100) Subject: added previously static function to header file X-Git-Tag: 4.2.1.0~63 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=5c9e11b2fcdf6360718514d9e50fc58a07cb49a3 added previously static function to header file --- 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 *);