comparison src/video/SDL_shape.c @ 4781:fc4c775b468a

Added Andreas's fixes to the header and stub file for SDL_shape.
author Eli Gottlieb <eligottlieb@gmail.com>
date Mon, 21 Jun 2010 23:08:10 -0400
parents 4f915a47b995
children b6930aefd008
comparison
equal deleted inserted replaced
4780:4f915a47b995 4781:fc4c775b468a
28 28
29 SDL_Window* SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) { 29 SDL_Window* SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
30 return NULL; 30 return NULL;
31 } 31 }
32 32
33 SDL_bool SDL_WindowIsShaped(const SDL_Window *window) { 33 SDL_bool SDL_IsShapedWindow(const SDL_Window *window) {
34 return SDL_FALSE; 34 return SDL_FALSE;
35 } 35 }
36 36
37 int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode parameters) { 37 int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) {
38 if(window == NULL || !SDL_WindowIsShaped(window)) 38 if(window == NULL || !SDL_WindowIsShaped(window))
39 return -2; 39 return -2;
40 if(shape == NULL) 40 if(shape == NULL)
41 return -1; 41 return -1;
42 return -3; 42 return -3;
43 } 43 }
44 44
45 int SDL_GetShapeParameters(SDL_Window *window,SDL_WindowShapeMode *shapeMode) { 45 int SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shapeMode) {
46 if(shapeMode == NULL) 46 if(shapeMode == NULL)
47 return -1; 47 return -1;
48 if(window == NULL || !SDL_WindowIsShaped(window)) 48 if(window == NULL || !SDL_WindowIsShaped(window))
49 return -2; 49 return -2;
50 return -3; 50 return -3;