[sysprof/wip/visualizers] visualizer-ticks: adjust line draw ordering
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/visualizers] visualizer-ticks: adjust line draw ordering
- Date: Wed, 28 Sep 2016 00:10:32 +0000 (UTC)
commit 3a3b4f1fa06a0b56d41d0ecd6790bd77c4eca993
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 27 17:09:37 2016 -0700
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/sp-visualizer-ticks.c b/lib/sp-visualizer-ticks.c
index 794529f..e2eeeb6 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]