aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_win.c')
-rw-r--r--pugl/pugl_win.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c
index b1fa41a..e751df9 100644
--- a/pugl/pugl_win.c
+++ b/pugl/pugl_win.c
@@ -733,11 +733,6 @@ puglProcessEvents(PuglView* view)
handleMessage(view, msg.message, msg.wParam, msg.lParam);
}
- if (view->redisplay) {
- InvalidateRect(view->impl->hwnd, NULL, FALSE);
- view->redisplay = false;
- }
-
return PUGL_SUCCESS;
}
@@ -781,7 +776,7 @@ puglGetTime(PuglView* view)
void
puglPostRedisplay(PuglView* view)
{
- view->redisplay = true;
+ RedrawWindow(view->impl->hwnd, NULL, NULL, RDW_INVALIDATE);
}
PuglNativeWindow