summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_lines.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-06-24 16:28:53 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-06-24 16:28:53 -0400
commita1f858d3b207739e0719c1fc28003f1d9dd3965d (patch)
tree23c9c35f6b95e116f11354b0c78841036dcdc6bb /gtk2_ardour/tempo_lines.cc
parent0ce393f05144762a20d72975d0254ebca0789973 (diff)
an awful lot of tweaks to drawing details
Diffstat (limited to 'gtk2_ardour/tempo_lines.cc')
-rw-r--r--gtk2_ardour/tempo_lines.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/tempo_lines.cc b/gtk2_ardour/tempo_lines.cc
index d73fb54b81..6bf7dfbde9 100644
--- a/gtk2_ardour/tempo_lines.cc
+++ b/gtk2_ardour/tempo_lines.cc
@@ -111,8 +111,12 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
line->set_ignore_events (true);
}
- line->set_x0 (xpos);
- line->set_x1 (xpos);
+ /* move to 0.5 offset to ensure single pixel lines (see Cairo
+ * FAQ for info on why we do this).
+ */
+
+ line->set_x0 (xpos + 0.5);
+ line->set_x1 (xpos + 0.5);
line->set_y0 (0.0);
line->set_y1 (_height);
line->set_outline_color (color);