summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-02-26 19:29:08 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2011-03-03 17:48:25 -0500
commit230bd4b4617bb2bc803d946658529a0b3e15b44c (patch)
tree9a5ced294aedb60452a6d1eaa18c97d4ae16f2ab
parent11f07f9bdcc34861368faa8b54775157bbd0d9e6 (diff)
downloadgtk+-230bd4b4617bb2bc803d946658529a0b3e15b44c.tar.gz
range: x and y coordinates of the arrow rendering should be double
To prevent off-by-one rounding errors when drawing them later.
-rw-r--r--gtk/gtkrange.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 624875e432..7fc8434d4c 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;