diff options
author | Robin Gareus <robin@gareus.org> | 2014-12-28 15:01:49 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-12-28 15:01:49 +0100 |
commit | c14f6c59dbb3d163d901a1da169c7838ed39ea04 (patch) | |
tree | 2a9fd0ed0535d17a7ad1575bcc87b60d76f9928b /gtk2_ardour/editor.cc | |
parent | c2eea34fb0b419405e24d67f77ce3464ac95c0a6 (diff) |
apply font-scale to overall layout (rulers, track-header) - fixes #6088
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 58f3da9d96..a681dd44da 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -140,7 +140,7 @@ using PBD::internationalize; using PBD::atoi; using Gtkmm2ext::Keyboard; -const double Editor::timebar_height = 15.0; +double Editor::timebar_height = 15.0; static const gchar *_snap_type_strings[] = { N_("CD Frames"), @@ -405,6 +405,10 @@ Editor::Editor () samples_per_pixel = 2048; /* too early to use reset_zoom () */ + timebar_height = std::max(12., ceil (15. * ARDOUR_UI::config()->get_font_scale() / 102400.)); + TimeAxisView::setup_sizes (); + Marker::setup_sizes (timebar_height); + _scroll_callbacks = 0; bbt_label.set_name ("EditorRulerLabel"); |