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

Fixes :  https://github.com/libsdl-org/SDL/issues/10128.
This commit is contained in:
Ozkan Sezer 2024-06-27 05:47:50 +03:00
parent 800c35a2c1
commit a4f962fd46

View file

@ -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) {