From 982d639d44f23ac46aa19ddb08055fa8cec9b0fd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 27 Apr 2006 09:04:24 +0000 Subject: "The In-Flight Hack, 2006" a) measure lines extend the full height of the canvas b) region name color bars and text positioning now adjusted to match font size for different display resolutions c) vertical scrollbar limited to cover visible tracks only git-svn-id: svn://localhost/trunk/ardour2@486 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_time_axis.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/automation_time_axis.cc') diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 3831e253b4..fbe1568011 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -275,8 +275,9 @@ AutomationTimeAxisView::clear_clicked () } void -AutomationTimeAxisView::set_height (TrackHeight h) +AutomationTimeAxisView::set_height (TrackHeight ht) { + uint32_t h = height_to_pixels (ht); bool changed = (height != (uint32_t) h); TimeAxisView* state_parent = get_parent_with_state (); @@ -284,7 +285,7 @@ AutomationTimeAxisView::set_height (TrackHeight h) controls_table.show_all (); - TimeAxisView::set_height (h); + TimeAxisView::set_height (ht); base_rect->property_y2() = h; for (vector::iterator i = lines.begin(); i != lines.end(); ++i) { -- cgit v1.2.3