mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Fix visual server error when minimizing the window
(cherry picked from commit bf44275b1a)
This commit is contained in:
committed by
Rémi Verschelde
parent
9a7c310134
commit
694120210a
@@ -603,8 +603,12 @@ LRESULT OS_Windows::WndProc(HWND hWnd,UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
||||
} break;
|
||||
|
||||
case WM_SIZE: {
|
||||
video_mode.width=LOWORD(lParam);
|
||||
video_mode.height=HIWORD(lParam);
|
||||
int window_w = LOWORD(lParam);
|
||||
int window_h = HIWORD(lParam);
|
||||
if (window_w > 0 && window_h > 0) {
|
||||
video_mode.width = window_w;
|
||||
video_mode.height = window_h;
|
||||
}
|
||||
//return 0; // Jump Back
|
||||
} break;
|
||||
case WM_SYSKEYDOWN:
|
||||
|
||||
Reference in New Issue
Block a user