an awful lot of tweaks to drawing details
[ardour.git] / gtk2_ardour / tempo_lines.cc
index d73fb54b81309b04b1f330ed1d572f3c959948de..6bf7dfbde9081e472f441309545cf9ab95978550 100644 (file)
@@ -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);