From 3166ca7ffd2b5a5e50b48ea99fe767583e295342 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 26 Sep 2023 11:33:11 -0600 Subject: [PATCH] only UI scale the scroomer itself, not the kbd header --- gtk2_ardour/piano_roll_header.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/piano_roll_header.cc b/gtk2_ardour/piano_roll_header.cc index 9116dd4ce4..59e6f54fa2 100644 --- a/gtk2_ardour/piano_roll_header.cc +++ b/gtk2_ardour/piano_roll_header.cc @@ -834,13 +834,12 @@ void PianoRollHeader::on_size_request (Gtk::Requisition* r) { if (show_scroomer()) { - _scroomer_size = 60.f; + _scroomer_size = 60.f * UIConfiguration::instance().get_ui_scale(); } else { - _scroomer_size = 20.f; + _scroomer_size = 20.f * UIConfiguration::instance().get_ui_scale(); } - float w = _scroomer_size + 20.f; - r->width = std::max (w, rintf (w * UIConfiguration::instance().get_ui_scale())); + r->width = _scroomer_size + 20.f; } void