diff options
Diffstat (limited to 'pugl/detail/x11_cairo.c')
-rw-r--r-- | pugl/detail/x11_cairo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pugl/detail/x11_cairo.c b/pugl/detail/x11_cairo.c index 9d3ec16..7a02dcd 100644 --- a/pugl/detail/x11_cairo.c +++ b/pugl/detail/x11_cairo.c @@ -79,12 +79,12 @@ puglX11CairoDestroy(PuglView* view) } static PuglStatus -puglX11CairoEnter(PuglView* view, bool drawing) +puglX11CairoEnter(PuglView* view, const PuglEventExpose* expose) { PuglInternals* const impl = view->impl; PuglX11CairoSurface* const surface = (PuglX11CairoSurface*)impl->surface; - if (drawing) { + if (expose) { surface->cr = cairo_create(surface->front); if (!surface->cr || cairo_status(surface->cr)) { return PUGL_CREATE_CONTEXT_FAILED; @@ -95,12 +95,12 @@ puglX11CairoEnter(PuglView* view, bool drawing) } static PuglStatus -puglX11CairoLeave(PuglView* view, bool drawing) +puglX11CairoLeave(PuglView* view, const PuglEventExpose* expose) { PuglInternals* const impl = view->impl; PuglX11CairoSurface* const surface = (PuglX11CairoSurface*)impl->surface; - if (drawing) { + if (expose) { // Destroy front context that was used by the user for drawing cairo_destroy(surface->cr); |