[gimp] app: call cairo_surface_flush before drawing directly
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: call cairo_surface_flush before drawing directly
- Date: Thu, 26 May 2011 18:19:45 +0000 (UTC)
commit 13716023837e5cdaa97ae979828d5938eb153ddb
Author: Massimo Valentini <mvalentini src gnome org>
Date: Thu May 26 19:54:01 2011 +0200
app: call cairo_surface_flush before drawing directly
app/display/gimpcanvastransformpreview.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpcanvastransformpreview.c b/app/display/gimpcanvastransformpreview.c
index cb97aa5..21c3e6d 100644
--- a/app/display/gimpcanvastransformpreview.c
+++ b/app/display/gimpcanvastransformpreview.c
@@ -934,6 +934,7 @@ gimp_canvas_transform_preview_draw_tri_row (GimpDrawable *texture,
if (! dx)
return;
+ cairo_surface_flush (area);
pptr = (cairo_image_surface_get_data (area)
+ (y - area_offy) * cairo_image_surface_get_stride (area)
+ (x1 - area_offx) * 4);
@@ -1171,6 +1172,7 @@ gimp_canvas_transform_preview_draw_tri_row_mask (GimpDrawable *texture,
mu = u + mask_offx;
mv = v + mask_offy;
+ cairo_surface_flush (area);
pptr = (cairo_image_surface_get_data (area)
+ (y - area_offy) * cairo_image_surface_get_stride (area)
+ (x1 - area_offx) * 4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]