mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 09:57:40 +00:00
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:
parent
800c35a2c1
commit
a4f962fd46
1 changed files with 2 additions and 1 deletions
|
@ -55,9 +55,10 @@ static Uint8 *GenerateShapeMask(SDL_Surface *shape)
|
||||||
|
|
||||||
int X11_UpdateWindowShape(SDL_VideoDevice *_this, SDL_Window *window, SDL_Surface *shape)
|
int X11_UpdateWindowShape(SDL_VideoDevice *_this, SDL_Window *window, SDL_Surface *shape)
|
||||||
{
|
{
|
||||||
|
int result = -1;
|
||||||
|
|
||||||
#ifdef SDL_VIDEO_DRIVER_X11_XSHAPE
|
#ifdef SDL_VIDEO_DRIVER_X11_XSHAPE
|
||||||
SDL_WindowData *windowdata = window->driverdata;
|
SDL_WindowData *windowdata = window->driverdata;
|
||||||
int result = -1;
|
|
||||||
|
|
||||||
/* Generate a set of spans for the region */
|
/* Generate a set of spans for the region */
|
||||||
if (shape) {
|
if (shape) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue