diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-20 20:45:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-20 20:45:36 +0200 |
commit | 451450d3f86b1d36d1a1b1a2b0b7db4a21d36153 (patch) | |
tree | b8117f05fe32d413294ba6da8624b0b0593439fd /gtk2_ardour/mixer_strip.cc | |
parent | 494009a6e28bafac071a3160fbf385c6a076ae8e (diff) |
scalable panners
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index ac0cb80dc3..dc9cdcc59b 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -705,8 +705,12 @@ MixerStrip::set_width_enum (Width w, void* owner) panners.astate_string(_route->panner()->automation_state())); } - - set_size_request (max (110 * scale, gpm.get_gm_width() + 5 * scale), -1); + { + // panners expect an even number of horiz. pixels + int width = rint(max (110 * scale, gpm.get_gm_width() + 10 * scale)) + 1; + width &= ~1; + set_size_request (width, -1); + } break; case Narrow: @@ -728,7 +732,12 @@ MixerStrip::set_width_enum (Width w, void* owner) panners.short_astate_string(_route->panner()->automation_state())); } - set_size_request (max (60 * scale, gpm.get_gm_width() + 10 * scale), -1); + { + // panners expect an even number of horiz. pixels + int width = rint(max (60 * scale, gpm.get_gm_width() + 10 * scale)) + 1; + width &= ~1; + set_size_request (width, -1); + } break; } |