author | Sam Lantinga <slouken@libsdl.org> |
Sun, 06 Sep 2009 15:04:38 +0000 | |
changeset 3256 | 83c87f2b2aab |
parent 3255 | f8a4214ce90a |
child 3257 | 94fb40a4a9a7 |
--- a/src/video/win32/SDL_win32events.c Sun Sep 06 04:40:54 2009 +0000 +++ b/src/video/win32/SDL_win32events.c Sun Sep 06 15:04:38 2009 +0000 @@ -528,7 +528,10 @@ int w, h; Uint32 window_flags; - GetClientRect(hwnd, &rect); + if (!GetClientRect(hwnd, &rect) || + (rect.right == rect.left && rect.bottom == rect.top)) { + break; + } ClientToScreen(hwnd, (LPPOINT) & rect); ClientToScreen(hwnd, (LPPOINT) & rect + 1);