diff 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
line wrap: on
line diff
--- a/src/video/SDL_shape.c	Thu Aug 05 01:03:24 2010 -0400
+++ b/src/video/SDL_shape.c	Thu Aug 05 18:58:45 2010 -0400
@@ -242,7 +242,7 @@
 }
 
 SDL_bool SDL_WindowHasAShape(SDL_Window *window) {
-	if (window == NULL && !SDL_IsShapedWindow(window))
+	if (window == NULL || !SDL_IsShapedWindow(window))
 		return SDL_FALSE;
 	return window->shaper->hasshape;
 }