From b984f3096838fadd4c23177ddd6ba333562d85c8 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 29 Dec 2020 17:45:32 +0100 Subject: [PATCH] Platform/Win32/Win32Display.cpp: for WM_SIZE event we can use lParam variable to get the size. --- source/Platform/Win32/Win32Display.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Platform/Win32/Win32Display.cpp b/source/Platform/Win32/Win32Display.cpp index 89bedd0..90271a0 100644 --- a/source/Platform/Win32/Win32Display.cpp +++ b/source/Platform/Win32/Win32Display.cpp @@ -303,7 +303,8 @@ void Win32Display::processMessage(UINT message, WPARAM wParam, LPARAM lParam) case WM_SIZE : if (!m_inResizeModalLoop && (wParam == SIZE_MAXIMIZED || wParam == SIZE_RESTORED)) { - processResizeMessage(getSize()); + Vector2u size(LOWORD(lParam), HIWORD(lParam)); + processResizeMessage(size); } break; case WM_GETMINMAXINFO :