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 10e06e6..0aab254 100644
--- a/src/win_cairo.c
+++ b/src/win_cairo.c
@@ -108,7 +108,7 @@ puglWinCairoEnter(PuglView* view, const PuglExposeEvent* expose)
if (expose && !(st = puglWinCairoCreateDrawContext(view)) &&
!(st = puglWinCairoOpen(view))) {
- BeginPaint(view->impl->hwnd, &view->impl->paint);
+ st = puglWinEnter(view, expose);
}
return st;
@@ -134,11 +134,9 @@ puglWinCairoLeave(PuglView* view, const PuglExposeEvent* expose)
puglWinCairoClose(view);
puglWinCairoDestroyDrawContext(view);
-
- EndPaint(view->impl->hwnd, &view->impl->paint);
}
- return PUGL_SUCCESS;
+ return puglWinLeave(view, expose);
}
static void*