summaryrefslogtreecommitdiff
path: root/gtk2_ardour/marker.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-12-28 15:01:49 +0100
committerRobin Gareus <robin@gareus.org>2014-12-28 15:01:49 +0100
commitc14f6c59dbb3d163d901a1da169c7838ed39ea04 (patch)
tree2a9fd0ed0535d17a7ad1575bcc87b60d76f9928b /gtk2_ardour/marker.cc
parentc2eea34fb0b419405e24d67f77ce3464ac95c0a6 (diff)
apply font-scale to overall layout (rulers, track-header) - fixes #6088
Diffstat (limited to 'gtk2_ardour/marker.cc')
-rw-r--r--gtk2_ardour/marker.cc7
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)