Mercurial > sdl-ios-xcode
diff src/video/SDL_shape.c @ 4780:4f915a47b995
Replaced the model of treating a window's shape as a render target with treating a window's shape as a surface passed into an SDL_SetWindowShape() function. I'll send this off to Andreas and Sam and start coding.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Sat, 19 Jun 2010 23:10:57 -0400 |
parents | 9838d3525a1b |
children | fc4c775b468a |
line wrap: on
line diff
--- a/src/video/SDL_shape.c Thu Jun 10 17:50:38 2010 -0400 +++ b/src/video/SDL_shape.c Sat Jun 19 23:10:57 2010 -0400 @@ -34,13 +34,11 @@ return SDL_FALSE; } -int SDL_SelectShapeRenderer(const SDL_Window *window) { - return -1; -} - -int SDL_SetShapeParameters(SDL_Window *window,SDL_WindowShapeMode shapeMode) { +int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode parameters) { if(window == NULL || !SDL_WindowIsShaped(window)) return -2; + if(shape == NULL) + return -1; return -3; }