comparison src/video/SDL_shape.c @ 4834:fd5bb97ec05d

Improving Cocoa implementation and fixed a small bug in SDL_shape.c.
author egottlieb
date Thu, 05 Aug 2010 18:58:45 -0400
parents 0c82f20327ec
children 7eb8ca721a5b
comparison
equal deleted inserted replaced
4833:34fb492cefe3 4834:fd5bb97ec05d
240 } 240 }
241 return result; 241 return result;
242 } 242 }
243 243
244 SDL_bool SDL_WindowHasAShape(SDL_Window *window) { 244 SDL_bool SDL_WindowHasAShape(SDL_Window *window) {
245 if (window == NULL && !SDL_IsShapedWindow(window)) 245 if (window == NULL || !SDL_IsShapedWindow(window))
246 return SDL_FALSE; 246 return SDL_FALSE;
247 return window->shaper->hasshape; 247 return window->shaper->hasshape;
248 } 248 }
249 249
250 int SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shapeMode) { 250 int SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shapeMode) {