[gnome-desktop] rr-labeler: scale the corner radii when drawing the fill



commit 5edcac4e3f017c2fd6f69743aa23f8e62258f03d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Sep 25 16:17:08 2012 -0400

    rr-labeler: scale the corner radii when drawing the fill
    
    We need to scale down the corner radii of the fill when drawing it on
    top of the frame, or its corners will not perfectly match those of the
    stroke, leaving some unpleasant transparent artifacts around the
    corners.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684814

 libgnome-desktop/gnome-rr-labeler.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr-labeler.c b/libgnome-desktop/gnome-rr-labeler.c
index e0c5a84..2118f83 100644
--- a/libgnome-desktop/gnome-rr-labeler.c
+++ b/libgnome-desktop/gnome-rr-labeler.c
@@ -309,7 +309,8 @@ label_draw_background_and_frame (GtkWidget *widget, cairo_t *cr, gboolean for_sh
 	                   LABEL_WINDOW_EDGE_THICKNESS,
 	                   allocation.width - LABEL_WINDOW_EDGE_THICKNESS * 2,
 	                   allocation.height - LABEL_WINDOW_EDGE_THICKNESS * 2,
-	                   LABEL_CORNER_RADIUS, LABEL_CORNER_RADIUS);
+	                   LABEL_CORNER_RADIUS - LABEL_WINDOW_EDGE_THICKNESS / 2.0,
+			   LABEL_CORNER_RADIUS - LABEL_WINDOW_EDGE_THICKNESS / 2.0);
 	cairo_fill (cr);
 
 	cairo_restore (cr);



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