From 0e6f60a849fd29ff5f711d5a31c2f0972b938bce Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Aug 2019 10:12:10 +0200 Subject: Windows: Improve resize smoothness slightly --- pugl/detail/win.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pugl/detail/win.c b/pugl/detail/win.c index 1203bca..f1ab339 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -516,9 +516,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) break; case WM_SIZE: rect = handleConfigure(view, &event); - RedrawWindow(view->impl->hwnd, NULL, NULL, - RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_INTERNALPAINT| - RDW_UPDATENOW); + InvalidateRect(view->impl->hwnd, NULL, false); break; case WM_SIZING: if (view->min_aspect_x) { -- cgit v1.2.1