[gtk+] gdkcairo: Add a missing flush
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkcairo: Add a missing flush
- Date: Tue, 2 Sep 2014 18:28:29 +0000 (UTC)
commit 0acad8436693faed46d2357d707ff01f103cb57a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Sep 2 08:29:47 2014 -0700
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.
gdk/gdkcairo.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 066f5c4..c541215 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]