From 6c6e7ba2eefe858b39fc8396f60b6af2ee5f6ab8 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 8 Feb 2022 16:53:37 -0600 Subject: [PATCH] cue markers: pixel pushing --- gtk2_ardour/marker.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc index 83406af5b0..19ded76d5d 100644 --- a/gtk2_ardour/marker.cc +++ b/gtk2_ardour/marker.cc @@ -507,8 +507,10 @@ ArdourMarker::setup_name_display () limit = _right_label_limit; } - const float padding = std::max(2.f, rintf(2.f * UIConfiguration::instance().get_ui_scale())); - const double M3 = std::max(1.f, rintf(3.f * UIConfiguration::instance().get_ui_scale())); + float scale = UIConfiguration::instance().get_ui_scale(); + + const float padding = std::max(2.f, rintf(2.f * scale)); + const double M3 = std::max(1.f, rintf(3.f * scale)); /* Work out how wide the name can be */ int name_width = min ((double) pixel_width (_name, name_font) + padding, limit); @@ -551,6 +553,10 @@ ArdourMarker::setup_name_display () _name_flag->set_x0 (M3); _name_flag->set_x1 (_name_item->position().x + name_width + padding); break; + case Cue: + _name_flag->set_x0 (M3); + _name_flag->set_x1 (_name_item->position().x + name_width + padding + 1*scale); + break; default: _name_flag->set_x0 (0); _name_flag->set_x1 (_name_item->position().x + name_width + padding);