diff options
Diffstat (limited to 'src/win.c')
-rw-r--r-- | src/win.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1651,8 +1651,7 @@ PuglStatus puglWinEnter(PuglView* view, const PuglExposeEvent* expose) { if (expose) { - PAINTSTRUCT ps; - BeginPaint(view->impl->hwnd, &ps); + BeginPaint(view->impl->hwnd, &view->impl->paint); } return PUGL_SUCCESS; @@ -1662,8 +1661,7 @@ PuglStatus puglWinLeave(PuglView* view, const PuglExposeEvent* expose) { if (expose) { - PAINTSTRUCT ps; - EndPaint(view->impl->hwnd, &ps); + EndPaint(view->impl->hwnd, &view->impl->paint); } return PUGL_SUCCESS; |