mirror of
https://github.com/yawut/SDL.git
synced 2026-08-20 07:44:03 -05:00
Fixed bug where minimized windows get zero width/height
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user