fixup LED size (font-scaling)..
authorRobin Gareus <robin@gareus.org>
Sat, 27 Dec 2014 17:05:42 +0000 (18:05 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 27 Dec 2014 17:05:42 +0000 (18:05 +0100)
..until there's a better solution.

gtk2_ardour/ardour_button.cc

index 2084c3fd4d99a7367e9d6e1a9fba5951d1557208..55882353fe2a0b996ce16599064bda64b45dfcfb 100644 (file)
@@ -587,7 +587,7 @@ ArdourButton::on_size_request (Gtk::Requisition* req)
        CairoWidget::on_size_request (req);
 
        if (_diameter == 0) {
-               const float newdia = rint (ARDOUR_UI::config()->get_font_scale () / 1024. / 7.5); // 11px with 80% font-scaling
+               const float newdia = rint (ARDOUR_UI::config()->get_font_scale () / 9600.0); // 11px with 100% font-scaling
                if (_diameter != newdia) {
                        _pattern_height = 0;
                        _diameter = newdia;