Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed bug where minimized windows get zero width/height

  • Loading branch information
slouken committed Sep 6, 2009
1 parent ce15df5 commit 1d2f8bb396066d392dcb0cc1d48995e8df01c61d
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/video/win32/SDL_win32events.c
@@ -528,7 +528,10 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
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);

0 comments on commit 1d2f8bb

Please sign in to comment.