From 3a3b4f1fa06a0b56d41d0ecd6790bd77c4eca993 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 27 Sep 2016 17:09:37 -0700 Subject: [PATCH] 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. --- lib/sp-visualizer-ticks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sp-visualizer-ticks.c b/lib/sp-visualizer-ticks.c index 794529f2..e2eeeb6c 100644 --- a/lib/sp-visualizer-ticks.c +++ b/lib/sp-visualizer-ticks.c @@ -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; }