]> Pileus Git - ~andy/gtk/commitdiff
range: x and y coordinates of the arrow rendering should be double
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 27 Feb 2011 00:29:08 +0000 (19:29 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 3 Mar 2011 22:48:25 +0000 (17:48 -0500)
To prevent off-by-one rounding errors when drawing them later.

gtk/gtkrange.c

index 624875e43243a777c888ac8a6c1ba959c02376a8..7fc8434d4c5912479b6e14ca441fbff68ec9c82d 100644 (file)
@@ -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;