From c91eb8ee3e5b1ea6817ce7c2dcc94aaf1e7fdd2c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 27 Jun 2019 22:29:34 +0200 Subject: Draw while resizing on Windows --- pugl/pugl_win.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.1