diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-04-27 09:04:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-04-27 09:04:24 +0000 |
commit | 982d639d44f23ac46aa19ddb08055fa8cec9b0fd (patch) | |
tree | 2acfb1920e1bf4b8eb0390a34db131302c85a71e /gtk2_ardour/automation_time_axis.cc | |
parent | d2ff9e40e3d1990eba4024b945bdf0a6bb1625cf (diff) |
"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
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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<AutomationLine*>::iterator i = lines.begin(); i != lines.end(); ++i) { |