diff options
author | David Robillard <d@drobilla.net> | 2019-07-20 20:51:11 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-20 21:44:20 +0200 |
commit | 5ba0ea7cd8cfec3f374f380a03e144e24f43a12c (patch) | |
tree | be12e2309a90cbba75c86c8cb629a913e50ff623 /pugl/pugl_win.c | |
parent | 4d0704bae2d4eb2a292caabda91d654a17104501 (diff) | |
download | pugl-5ba0ea7cd8cfec3f374f380a03e144e24f43a12c.tar.gz pugl-5ba0ea7cd8cfec3f374f380a03e144e24f43a12c.tar.bz2 pugl-5ba0ea7cd8cfec3f374f380a03e144e24f43a12c.zip |
Remove redisplay flag and use system events instead
Diffstat (limited to 'pugl/pugl_win.c')
-rw-r--r-- | pugl/pugl_win.c | 7 |
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 |