X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fstereo_panner.cc;h=ab057c91476ab90d8afee3d4c416232d27e09253;hb=88920232e9cac02a41797fb347c23bfaa6c4fc42;hp=b52f2d2b0588d260bbffc9dc8eac6ace233466d0;hpb=91fac4c96dc6210dcc056da70dc608700d7eb570;p=ardour.git diff --git a/gtk2_ardour/stereo_panner.cc b/gtk2_ardour/stereo_panner.cc index b52f2d2b05..ab057c9147 100644 --- a/gtk2_ardour/stereo_panner.cc +++ b/gtk2_ardour/stereo_panner.cc @@ -151,9 +151,8 @@ StereoPanner::on_expose_event (GdkEventExpose*) width = get_width(); height = get_height (); - const double scale = ARDOUR_UI::config()->get_font_scale() / 102400.; const int step_down = rint(height / 3.5); - const double corner_radius = 5.0 * scale; + const double corner_radius = 5.0 * ARDOUR_UI::ui_scale; const int lr_box_size = height - 2 * step_down; const int pos_box_size = (int)(rint(step_down * .8)) | 1; const int top_step = step_down - pos_box_size;