aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 10:12:10 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commit0e6f60a849fd29ff5f711d5a31c2f0972b938bce (patch)
tree9601cd18d47f48d9e1a2cf6f71fbaa97695b887a /pugl/detail
parentbb01cc1b9562b802ae778dfe082b0dac709e1b00 (diff)
downloadpugl-0e6f60a849fd29ff5f711d5a31c2f0972b938bce.tar.gz
pugl-0e6f60a849fd29ff5f711d5a31c2f0972b938bce.tar.bz2
pugl-0e6f60a849fd29ff5f711d5a31c2f0972b938bce.zip
Windows: Improve resize smoothness slightly
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/win.c4
1 files changed, 1 insertions, 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) {