Fixed up shape files as best I can.
authorEli Gottlieb <eligottlieb@gmail.com>
Wed, 07 Jul 2010 16:20:54 -0400
changeset 4786 175da36d1342
parent 4785 ef8b32ef9793
child 4787 e25ad8d97027
Fixed up shape files as best I can.
src/video/SDL_shape.c
src/video/x11/SDL_x11shape.c
--- a/src/video/SDL_shape.c	Tue Jul 06 22:05:22 2010 -0400
+++ b/src/video/SDL_shape.c	Wed Jul 07 16:20:54 2010 -0400
@@ -62,7 +62,7 @@
 }
 
 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)
--- a/src/video/x11/SDL_x11shape.c	Tue Jul 06 22:05:22 2010 -0400
+++ b/src/video/x11/SDL_x11shape.c	Wed Jul 07 16:20:54 2010 -0400
@@ -20,6 +20,7 @@
     eligottlieb@gmail.com
 */
 
+#include <assert.h>
 #include <X11/extensions/shape.h>
 #include "SDL_x11shape.h"
 #include "SDL_x11window.h"