diff src/video/win32/SDL_win32events.c @ 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 518d1679d2d0 93402b9dd20c
children d6adaafcfb10 27c458e4ae31
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c	Sun Aug 22 12:39:56 2010 -0700
+++ b/src/video/win32/SDL_win32events.c	Sun Aug 22 13:45:56 2010 -0700
@@ -28,6 +28,7 @@
 #include "SDL_config.h"
 
 #include "SDL_win32video.h"
+#include "SDL_win32shape.h"
 #include "SDL_syswm.h"
 #include "SDL_vkeys.h"
 #include "../../events/SDL_events_c.h"
@@ -364,6 +365,8 @@
             BOOL menu;
 
             /* If we allow resizing, let the resize happen naturally */
+            if(SDL_IsShapedWindow(data->window))
+                Win32_ResizeWindowShape(data->window);
             if (SDL_GetWindowFlags(data->window) & SDL_WINDOW_RESIZABLE) {
                 returnCode = 0;
                 break;