gdkcairo: Add a missing flush

Noticed by ickle on IRC. We need to flush here to make sure that the
image data we fetch is up to date.
This commit is contained in:
Jasper St. Pierre 2014-09-02 08:29:47 -07:00
parent 6243c7122c
commit 0acad84366

View File

@ -477,6 +477,9 @@ gdk_cairo_region_create_from_surface (cairo_surface_t *surface)
else
image = cairo_surface_reference (surface);
/* Flush the surface to make sure that the rendering is up to date. */
cairo_surface_flush (image);
data = cairo_image_surface_get_data (image);
stride = cairo_image_surface_get_stride (image);