From 8ac9a9df24eefc5f1125db87eb8eda2e94f54070 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 19 Jun 2010 13:23:50 +0100 Subject: xcb: Return the status upon flushing the device. The vfunc was updated to expect the status return, so supply it. --- src/cairo-xcb-connection.c | 5 +++-- 1 file 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 -- cgit v1.2.3