added previously static function to header file
authorHolger Schemel <info@artsoft.org>
Fri, 11 Dec 2020 00:20:23 +0000 (01:20 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 12 Dec 2020 11:03:53 +0000 (12:03 +0100)
src/libgame/sdl.c
src/libgame/sdl.h

index a2fe9ab5b3bc3ebf5bfdf3d2a009e09b1ce2d6b4..9755aaa492a33912ed19d9d2bef685d072421e97 100644 (file)
@@ -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);
 
index 4fec8030082d1927c3b7192dd03a7e5a0a789ed3..a5271c8152a1597d81fd585d0465c3c51e9739d6 100644 (file)
@@ -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 *);