aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-06-27 22:29:34 +0200
committerDavid Robillard <d@drobilla.net>2019-06-27 23:22:11 +0200
commitc91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c (patch)
treeda2526e3f7cdc65e8f351461f0ef7ba9a5a45121
parentc3c55efc986738ff9336598057e3ba8bf695fb49 (diff)
downloadpugl-c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c.tar.gz
pugl-c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c.tar.bz2
pugl-c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c.zip
Draw while resizing on Windows
-rw-r--r--pugl/pugl_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp
index 2ae832b..4a1d008 100644
--- a/pugl/pugl_win.cpp
+++ b/pugl/pugl_win.cpp
@@ -465,6 +465,8 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
view->height = rect.bottom - rect.top;
event.configure.width = view->width;
event.configure.height = view->height;
+ InvalidateRect(view->impl->hwnd, NULL, FALSE);
+ UpdateWindow(view->impl->hwnd);
break;
case WM_GETMINMAXINFO:
mmi = (MINMAXINFO*)lParam;