visualizer-ticks: tweak half-line positioning

Just to get things a bit more friendly should we choose even
line widths.
This commit is contained in:
Christian Hergert
2016-09-27 17:08:52 -07:00
parent ad130db3d6
commit 857082b222

View File

@ -86,8 +86,8 @@ draw_ticks (SpVisualizerTicks *self,
for (gdouble x = 0; x < area->width; x += space)
{
cairo_move_to (cr, (gint)x - half, 0);
cairo_line_to (cr, (gint)x - half, tick_sizing[ticks].height);
cairo_move_to (cr, (gint)x - .5 - (gint)half, 0);
cairo_line_to (cr, (gint)x - .5 - (gint)half, tick_sizing[ticks].height);
}
cairo_set_line_width (cr, tick_sizing[ticks].width);