diff src/video/cocoa/SDL_cocoawindow.m @ 4811:d79939f20c45

Working on Cocoa implementation.
author Eli Gottlieb <eligottlieb@gmail.com>
date Mon, 26 Jul 2010 21:48:53 -0400
parents 6512cba48440
children 7b1d35d98294
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Jul 26 20:41:45 2010 -0400
+++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Jul 26 21:48:53 2010 -0400
@@ -28,6 +28,7 @@
 #include "../../events/SDL_windowevents_c.h"
 
 #include "SDL_cocoavideo.h"
+#include "SDL_cocoashape.h"
 
 static __inline__ void ConvertNSRect(NSRect *r)
 {
@@ -111,6 +112,7 @@
     NSRect rect = [_data->nswindow contentRectForFrameRect:[_data->nswindow frame]];
     w = (int)rect.size.width;
     h = (int)rect.size.height;
+    Cocoa_ResizeWindowShape(_data->window);
     SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_RESIZED, w, h);
 }