[gnome-themes-standard] adwaita: don't use _cairo_round_rectangle() for rectangles with radius 0



commit 92366ea4ed9e169e0c44a59235b12e3e4aea6727
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Apr 28 16:18:53 2011 -0400

    adwaita: don't use _cairo_round_rectangle() for rectangles with radius 0

 src/adwaita_engine.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index b0bb15a..f2f1f7e 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -594,16 +594,24 @@ adwaita_engine_render_extension (GtkThemingEngine *engine,
 		switch (gap_side)
 		{
 		case GTK_POS_BOTTOM:
-			_cairo_round_rectangle (cr, x + 1, y + 1, width - 2, 3, 0);
+			cairo_rectangle (cr,
+					 x + 1, y + 1,
+					 width - 2, 3);
 			break;
 		case GTK_POS_TOP:
-			_cairo_round_rectangle (cr, x + 1, y + height - 4, width - 2, 3, 0);
+			cairo_rectangle (cr,
+					 x + 1, y + height - 4,
+					 width - 2, 3);
 			break;
 		case GTK_POS_RIGHT:
-			_cairo_round_rectangle (cr, x + 1, y + 1, 3, height - 2, 0);
+			cairo_rectangle (cr,
+					 x + 1, y + 1,
+					 3, height - 2);
 			break;
 		case GTK_POS_LEFT:
-			_cairo_round_rectangle (cr, x + width - 4, y + 1, 3, height - 2, 0);
+			cairo_rectangle (cr,
+					 x + width - 4, y + 1,
+					 3, height - 2);
 			break;
 		}
 



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