[sysprof/wip/visualizers] visualizer-ticks: tweak half-line positioning
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/visualizers] visualizer-ticks: tweak half-line positioning
- Date: Wed, 28 Sep 2016 00:10:27 +0000 (UTC)
commit 857082b222dc5621c878a475aa449b51f64f2ff4
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 27 17:08:52 2016 -0700
visualizer-ticks: tweak half-line positioning
Just to get things a bit more friendly should we choose even
line widths.
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 f5d83cf..794529f 100644
--- a/lib/sp-visualizer-ticks.c
+++ b/lib/sp-visualizer-ticks.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]