aboutsummaryrefslogtreecommitdiffstats
path: root/src/win_cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win_cairo.c')
-rw-r--r--src/win_cairo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/win_cairo.c b/src/win_cairo.c
index 4bef2e6..10e06e6 100644
--- a/src/win_cairo.c
+++ b/src/win_cairo.c
@@ -108,8 +108,7 @@ puglWinCairoEnter(PuglView* view, const PuglExposeEvent* expose)
if (expose && !(st = puglWinCairoCreateDrawContext(view)) &&
!(st = puglWinCairoOpen(view))) {
- PAINTSTRUCT ps;
- BeginPaint(view->impl->hwnd, &ps);
+ BeginPaint(view->impl->hwnd, &view->impl->paint);
}
return st;
@@ -136,8 +135,7 @@ puglWinCairoLeave(PuglView* view, const PuglExposeEvent* expose)
puglWinCairoClose(view);
puglWinCairoDestroyDrawContext(view);
- PAINTSTRUCT ps;
- EndPaint(view->impl->hwnd, &ps);
+ EndPaint(view->impl->hwnd, &view->impl->paint);
}
return PUGL_SUCCESS;