Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoawindow.m @ 4862:7b1d35d98294
Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 22 Aug 2010 13:45:56 -0700 |
parents | 257bdf117af8 d79939f20c45 |
children | 69d9db65f248 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m Sun Aug 22 12:39:56 2010 -0700 +++ b/src/video/cocoa/SDL_cocoawindow.m Sun Aug 22 13:45:56 2010 -0700 @@ -28,6 +28,7 @@ #include "../../events/SDL_touch_c.h" #include "../../events/SDL_windowevents_c.h" #include "SDL_cocoavideo.h" +#include "SDL_cocoashape.h" static __inline__ void ConvertNSRect(NSRect *r) { @@ -112,6 +113,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); }