diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-22 21:34:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-22 21:40:43 +0200 |
commit | b38ab89d92a5f963c90da885409da541ad081a65 (patch) | |
tree | b29a21e7a8121f1e37c70d95ad71484d590ed43d /gtk2_ardour/stereo_panner.cc | |
parent | 8d85afd29420a98148ac994f8dcb4e5412b7c2e2 (diff) |
clean up GUI scaling
Diffstat (limited to 'gtk2_ardour/stereo_panner.cc')
-rw-r--r-- | gtk2_ardour/stereo_panner.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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; |