Commit fa4fb672 authored by Cosimo Cecchi's avatar Cosimo Cecchi

arrow: x and y coordinates of the arrow rendering should be double

To prevent off-by-one rounding errors when drawing them later.
parent 230bd4b4
......@@ -312,7 +312,8 @@ gtk_arrow_draw (GtkWidget *widget,
GtkMisc *misc = GTK_MISC (widget);
GtkStyleContext *context;
GtkStateFlags state;
gint x, y, width, height;
gdouble x, y;
gint width, height;
gint extent;
gint xpad, ypad;
gfloat xalign, yalign;
......@@ -344,8 +345,8 @@ gtk_arrow_draw (GtkWidget *widget,
effective_arrow_type = GTK_ARROW_LEFT;
}
x = floor (xpad + ((width - extent) * xalign));
y = floor (ypad + ((height - extent) * yalign));
x = xpad + ((width - extent) * xalign);
y = ypad + ((height - extent) * yalign);
switch (effective_arrow_type)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment