Explorar o código

SDL_x11shape.c: fix build if SDL_VIDEO_DRIVER_X11_XSHAPE isn't defined

Fixes :  https://github.com/libsdl-org/SDL/issues/10128.
Ozkan Sezer %!s(int64=2) %!d(string=hai) anos
pai
achega
a4f962fd46
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/video/x11/SDL_x11shape.c

+ 2 - 1
src/video/x11/SDL_x11shape.c

@@ -55,9 +55,10 @@ static Uint8 *GenerateShapeMask(SDL_Surface *shape)
 
 int X11_UpdateWindowShape(SDL_VideoDevice *_this, SDL_Window *window, SDL_Surface *shape)
 {
+    int result = -1;
+
 #ifdef SDL_VIDEO_DRIVER_X11_XSHAPE
     SDL_WindowData *windowdata = window->driverdata;
-    int result = -1;
 
     /* Generate a set of spans for the region */
     if (shape) {