[gtk+] range: x and y coordinates of the arrow rendering should be double



commit 230bd4b4617bb2bc803d946658529a0b3e15b44c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Feb 26 19:29:08 2011 -0500

    range: x and y coordinates of the arrow rendering should be double
    
    To prevent off-by-one rounding errors when drawing them later.

 gtk/gtkrange.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 624875e..7fc8434 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1859,8 +1859,8 @@ draw_stepper (GtkRange     *range,
   GtkWidget *widget = GTK_WIDGET (range);
   gfloat arrow_scaling;
   GdkRectangle *rect;
-  gint arrow_x;
-  gint arrow_y;
+  gdouble arrow_x;
+  gdouble arrow_y;
   gdouble arrow_size, angle;
   gboolean arrow_sensitive;
 



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