diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-19 13:23:50 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-19 13:23:50 +0100 |
commit | 8ac9a9df24eefc5f1125db87eb8eda2e94f54070 (patch) | |
tree | 44f2e49cfe250735228c42a11b3df034f00605a0 | |
parent | 9fffc0e120df8947c34d9e423c69ab66b763d875 (diff) |
xcb: Return the status upon flushing the device.
The vfunc was updated to expect the status return, so supply it.
-rw-r--r-- | src/cairo-xcb-connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cairo-xcb-connection.c b/src/cairo-xcb-connection.c index 9da4eb3e..0488390a 100644 --- a/src/cairo-xcb-connection.c +++ b/src/cairo-xcb-connection.c @@ -468,7 +468,7 @@ _cairo_xcb_connection_query_dri2 (cairo_xcb_connection_t *connection) } #endif -static void +static cairo_status_t _device_flush (void *device) { cairo_xcb_connection_t *connection = device; @@ -477,7 +477,7 @@ _device_flush (void *device) status = cairo_device_acquire (&connection->device); if (unlikely (status)) - return; + return status; CAIRO_MUTEX_LOCK (connection->screens_mutex); cairo_list_foreach_entry (screen, cairo_xcb_screen_t, @@ -491,6 +491,7 @@ _device_flush (void *device) xcb_flush (connection->xcb_connection); cairo_device_release (&connection->device); + return CAIRO_STATUS_SUCCESS; } static cairo_bool_t |