diff options
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r-- | pugl/detail/win.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c index 6ef9255..1b86d3c 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -947,9 +947,9 @@ puglSetClipboard(PuglView* const view, } static PuglStatus -puglWinStubEnter(PuglView* view, bool drawing) +puglWinStubEnter(PuglView* view, const PuglEventExpose* expose) { - if (drawing) { + if (expose) { PAINTSTRUCT ps; BeginPaint(view->impl->hwnd, &ps); } @@ -958,9 +958,9 @@ puglWinStubEnter(PuglView* view, bool drawing) } static PuglStatus -puglWinStubLeave(PuglView* view, bool drawing) +puglWinStubLeave(PuglView* view, const PuglEventExpose* expose) { - if (drawing) { + if (expose) { PAINTSTRUCT ps; EndPaint(view->impl->hwnd, &ps); SwapBuffers(view->impl->hdc); |