Commit e5592bfb authored by Eli Gottlieb's avatar Eli Gottlieb

Fixed up shape files as best I can.

parent 9f24e9f6
...@@ -62,7 +62,7 @@ void SDL_CalculateShapeBitmap(Uint8 alphacutoff,SDL_Surface *shape,Uint8* bitmap ...@@ -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) { 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. //The window given was not a shapeable window.
return -2; return -2;
if(shape == NULL) if(shape == NULL)
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
eligottlieb@gmail.com eligottlieb@gmail.com
*/ */
#include <assert.h>
#include <X11/extensions/shape.h> #include <X11/extensions/shape.h>
#include "SDL_x11shape.h" #include "SDL_x11shape.h"
#include "SDL_x11window.h" #include "SDL_x11window.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment