Merge pull request #621 from usachevm/master

Correct GDI window sizing handling
pull/623/head
Micha Mettke 2018-02-01 06:48:08 -08:00 committed by GitHub
commit 87149c1368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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