mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-23 08:10:23 +01:00
Call cairo_surface_flush() before setting finished
With the current code, the surface will never be flushed as the flush function checks if the surface is finished, and if so, doesn't call the vfunc. Ooops.
This commit is contained in:
parent
467d5e7f90
commit
1c15510c3d
1 changed files with 1 additions and 1 deletions
|
|
@ -663,8 +663,8 @@ cairo_surface_finish (cairo_surface_t *surface)
|
|||
if (surface->snapshot_of != NULL)
|
||||
_cairo_surface_detach_snapshot (surface);
|
||||
|
||||
surface->finished = TRUE;
|
||||
cairo_surface_flush (surface);
|
||||
surface->finished = TRUE;
|
||||
|
||||
/* call finish even if in error mode */
|
||||
if (surface->backend->finish) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue