src/video/cocoa/SDL_cocoawindow.m
changeset 4937 24d44c7c4c63
parent 4927 d716dff4b13e
child 5056 8b7988f42fcb
--- a/src/video/cocoa/SDL_cocoawindow.m	Fri Dec 31 08:42:47 2010 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Dec 31 08:50:06 2010 -0800
@@ -117,7 +117,8 @@
     NSRect rect = [_data->nswindow contentRectForFrameRect:[_data->nswindow frame]];
     w = (int)rect.size.width;
     h = (int)rect.size.height;
-    Cocoa_ResizeWindowShape(_data->window);
+    if (SDL_IsShapedWindow(_data->window))
+        Cocoa_ResizeWindowShape(_data->window);
     SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_RESIZED, w, h);
 }