diff options
-rw-r--r-- | src/x11_cairo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/x11_cairo.c b/src/x11_cairo.c index d562fc5..fa05bd1 100644 --- a/src/x11_cairo.c +++ b/src/x11_cairo.c @@ -101,10 +101,7 @@ puglX11CairoEnter(PuglView* view, const PuglEventExpose* expose) if (expose && !(st = puglX11CairoOpen(view))) { surface->cr = cairo_create(surface->front); - - if (cairo_status(surface->cr)) { - st = PUGL_CREATE_CONTEXT_FAILED; - } + st = cairo_status(surface->cr) ? PUGL_CREATE_CONTEXT_FAILED : PUGL_SUCCESS; } return st; |