From 230bd4b4617bb2bc803d946658529a0b3e15b44c Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sat, 26 Feb 2011 19:29:08 -0500 Subject: [PATCH] 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 file 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;