[accounts-dialog] Make the crop area work again



commit 2b576db93cea9fd16a7b94ea2c091c7ba49c2eae
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 14 07:32:39 2010 -0400

    Make the crop area work again
    
    The rectangles were overlapping, causing the fill rule to wreak
    havoc.

 src/um-crop-area.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/um-crop-area.c b/src/um-crop-area.c
index e9fd708..4b6bacb 100644
--- a/src/um-crop-area.c
+++ b/src/um-crop-area.c
@@ -203,9 +203,9 @@ um_crop_area_draw (GtkWidget *widget,
 
         gdk_cairo_set_source_pixbuf (cr, uarea->priv->color_shifted, 0, 0);
         cairo_rectangle (cr, 0, 0, width, crop.y);
-        cairo_rectangle (cr, 0, crop.y, crop.x, height);
-        cairo_rectangle (cr, crop.x + crop.width, crop.y, width - area.x, crop.height);
-        cairo_rectangle (cr, 0, crop.y + crop.height, width, height - area.y);
+        cairo_rectangle (cr, 0, crop.y, crop.x, crop.height);
+        cairo_rectangle (cr, crop.x + crop.width, crop.y, width - crop.x - crop.width, crop.height);
+        cairo_rectangle (cr, 0, crop.y + crop.height, width, height - crop.y - crop.height);
         cairo_fill (cr);
 
         gdk_cairo_set_source_pixbuf (cr, uarea->priv->pixbuf, 0, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]