visualizer-ticks: adjust line draw ordering

We want to draw the most important ticks on top, which will
improve things should we start using CSS to define styling.
This commit is contained in:
Christian Hergert
2016-09-27 17:09:37 -07:00
parent 857082b222
commit 3a3b4f1fa0

View File

@ -126,8 +126,8 @@ sp_visualizer_ticks_draw (GtkWidget *widget,
if ((alloc.width / n_ticks) < MIN_TICK_DISTANCE)
continue;
for (guint j = 0; j < i; j++)
draw_ticks (self, cr, &alloc, j);
for (guint j = i; j > 0; j--)
draw_ticks (self, cr, &alloc, j - 1);
break;
}