Correct GDI window sizing handling

This commit is contained in:
um 2018-02-01 17:26:27 +03:00
parent 39e1041c07
commit f771450e93

View File

@ -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);