comparison src/video/SDL_shape.c @ 4786:175da36d1342

Fixed up shape files as best I can.
author Eli Gottlieb <eligottlieb@gmail.com>
date Wed, 07 Jul 2010 16:20:54 -0400
parents ef8b32ef9793
children e25ad8d97027
comparison
equal deleted inserted replaced
4785:ef8b32ef9793 4786:175da36d1342
60 if(SDL_MUSTLOCK(shape)) 60 if(SDL_MUSTLOCK(shape))
61 SDL_UnlockSurface(shape); 61 SDL_UnlockSurface(shape);
62 } 62 }
63 63
64 int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) { 64 int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) {
65 if(window == NULL || !SDL_WindowIsShaped(window)) 65 if(window == NULL || !SDL_IsShapedWindow(window))
66 //The window given was not a shapeable window. 66 //The window given was not a shapeable window.
67 return -2; 67 return -2;
68 if(shape == NULL) 68 if(shape == NULL)
69 //Invalid shape argument. 69 //Invalid shape argument.
70 return -1; 70 return -1;