From f771450e93b75e3b8975b359f6d48f4f295379d7 Mon Sep 17 00:00:00 2001 From: um Date: Thu, 1 Feb 2018 17:26:27 +0300 Subject: [PATCH] Correct GDI window sizing handling --- demo/gdi/nuklear_gdi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/gdi/nuklear_gdi.h b/demo/gdi/nuklear_gdi.h index 9020958..230e188 100644 --- a/demo/gdi/nuklear_gdi.h +++ b/demo/gdi/nuklear_gdi.h @@ -564,7 +564,7 @@ nk_gdi_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam) case WM_SIZE: { unsigned width = LOWORD(lparam); - unsigned height = LOWORD(lparam); + unsigned height = HIWORD(lparam); if (width != gdi.width || height != gdi.height) { DeleteObject(gdi.bitmap);