diff --git a/src/video/SDL_shape.c b/src/video/SDL_shape.c index 6c00a25e3..f3a52ddc6 100644 --- a/src/video/SDL_shape.c +++ b/src/video/SDL_shape.c @@ -62,7 +62,7 @@ void SDL_CalculateShapeBitmap(Uint8 alphacutoff,SDL_Surface *shape,Uint8* bitmap } int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) { - if(window == NULL || !SDL_WindowIsShaped(window)) + if(window == NULL || !SDL_IsShapedWindow(window)) //The window given was not a shapeable window. return -2; if(shape == NULL) diff --git a/src/video/x11/SDL_x11shape.c b/src/video/x11/SDL_x11shape.c index 9336c18cd..dc0a00522 100644 --- a/src/video/x11/SDL_x11shape.c +++ b/src/video/x11/SDL_x11shape.c @@ -20,6 +20,7 @@ eligottlieb@gmail.com */ +#include #include #include "SDL_x11shape.h" #include "SDL_x11window.h"