[gtk+] GtkThemingEngine: Improve pixel alignment in arrows.



commit 911431c0b21e5ab9a7d592d4112afc5767aacc59
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Aug 2 15:45:13 2010 +0200

    GtkThemingEngine: Improve pixel alignment in arrows.

 gtk/gtkthemingengine.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 216b1f2..547f373 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -700,9 +700,9 @@ add_path_arrow (cairo_t *cr,
   cairo_translate (cr, x + (size / 2), y + (size / 2));
   cairo_rotate (cr, angle);
 
-  cairo_move_to (cr, 0, - (size / 4) + 0.5);
-  cairo_line_to (cr, - (size / 2), (size / 4) + 0.5);
-  cairo_line_to (cr, (size / 2), (size / 4) + 0.5);
+  cairo_move_to (cr, 0, - (size / 4));
+  cairo_line_to (cr, - (size / 2), (size / 4));
+  cairo_line_to (cr, (size / 2), (size / 4));
   cairo_close_path (cr);
 
   cairo_restore (cr);



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