diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-13 21:47:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-14 12:37:57 +0100 |
commit | 7971c678f18b9a078dc921e8c9a9d8175038cd1c (patch) | |
tree | 0e2e5b68aed4b32b38794075f8f1d752730fb28d /src/cairo-surface-subsurface.c | |
parent | bca9400aec5c11e402758a2e06c8be560e64b78f (diff) | |
download | cairo-7971c678f18b9a078dc921e8c9a9d8175038cd1c.tar.gz |
subsurface: call the high-level cairo_surface_flush
And not the backend directly as this bypasses the extra steps taken in
the higher level to do common actions such as detach snapshots.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-surface-subsurface.c')
-rw-r--r-- | src/cairo-surface-subsurface.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c index 870537ec6..2fa554017 100644 --- a/src/cairo-surface-subsurface.c +++ b/src/cairo-surface-subsurface.c @@ -224,13 +224,9 @@ static cairo_status_t _cairo_surface_subsurface_flush (void *abstract_surface) { cairo_surface_subsurface_t *surface = abstract_surface; - cairo_status_t status; - - status = CAIRO_STATUS_SUCCESS; - if (surface->target->backend->flush != NULL) - status = surface->target->backend->flush (surface->target); - return status; + cairo_surface_flush (surface->target); + return surface->target->status; } static cairo_status_t |