diff options
author | David Robillard <d@drobilla.net> | 2019-06-27 22:29:34 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-06-27 23:22:11 +0200 |
commit | c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c (patch) | |
tree | da2526e3f7cdc65e8f351461f0ef7ba9a5a45121 /pugl/pugl_win.cpp | |
parent | c3c55efc986738ff9336598057e3ba8bf695fb49 (diff) | |
download | pugl-c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c.tar.gz pugl-c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c.tar.bz2 pugl-c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c.zip |
Draw while resizing on Windows
Diffstat (limited to 'pugl/pugl_win.cpp')
-rw-r--r-- | pugl/pugl_win.cpp | 2 |
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; |