diff options
author | David Robillard <d@drobilla.net> | 2021-05-24 16:22:47 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-24 20:44:16 -0400 |
commit | dd0b921970c2024dc1de72b5b522884f0a2e7e52 (patch) | |
tree | 1de8f3cfdee89ac63f567224ce806b7883a6eb00 /src/x11_cairo.c | |
parent | 44645c11c085dfe115a59c9ef8cbd57f938596dc (diff) | |
download | pugl-dd0b921970c2024dc1de72b5b522884f0a2e7e52.tar.gz pugl-dd0b921970c2024dc1de72b5b522884f0a2e7e52.tar.bz2 pugl-dd0b921970c2024dc1de72b5b522884f0a2e7e52.zip |
Shrink code
Diffstat (limited to 'src/x11_cairo.c')
-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; |