diff options
Diffstat (limited to 'gtk2_ardour/marker.cc')
-rw-r--r-- | gtk2_ardour/marker.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc index 33135181d5..77f1f92737 100644 --- a/gtk2_ardour/marker.cc +++ b/gtk2_ardour/marker.cc @@ -52,7 +52,12 @@ using namespace Gtkmm2ext; PBD::Signal1<void,Marker*> Marker::CatchDeletion; -static const double marker_height = 13.0; +static double marker_height = 13.0; + +void Marker::setup_sizes(const double timebar_height) +{ + marker_height = floor (timebar_height) - 2; +} Marker::Marker (PublicEditor& ed, ArdourCanvas::Container& parent, guint32 rgba, const string& annotation, Type type, framepos_t frame, bool handle_events) |