From 02085c14825f2a9e25a5df7b2676bd1f42858e69 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Wed, 11 Jul 2018 21:22:52 +0200 Subject: [PATCH] minor polishing of the Audio dialog --- src/gui/AudioDialog.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gui/AudioDialog.cxx b/src/gui/AudioDialog.cxx index 0a3b22aba..9022207d7 100644 --- a/src/gui/AudioDialog.cxx +++ b/src/gui/AudioDialog.cxx @@ -46,7 +46,8 @@ AudioDialog::AudioDialog(OSystem& osystem, DialogContainer& parent, fontHeight = font.getFontHeight(); int xpos, ypos; int lwidth = font.getStringWidth("Resampling quality "), - pwidth = font.getStringWidth("512 bytes"); + pwidth = font.getStringWidth("512 bytes"); + WidgetArray wid; VariantList items; @@ -121,15 +122,16 @@ AudioDialog::AudioDialog(OSystem& osystem, DialogContainer& parent, ypos += lineHeight + 4; // Param 1 - myHeadroomSlider = new SliderWidget(this, font, xpos, ypos, - "Headroom ", 0, 0, 2 * fontWidth); + int swidth = pwidth+23; + myHeadroomSlider = new SliderWidget(this, font, xpos, ypos, swidth, lineHeight, + "Headroom ", 0, 0, 2 * fontWidth); myHeadroomSlider->setMinValue(1); myHeadroomSlider->setMaxValue(AudioSettings::MAX_HEADROOM); wid.push_back(myHeadroomSlider); ypos += lineHeight + 4; // Param 2 - myBufferSizeSlider = new SliderWidget(this, font, xpos, ypos, - "Buffer size ", 0, 0, 2 * fontWidth); + myBufferSizeSlider = new SliderWidget(this, font, xpos, ypos, swidth, lineHeight, + "Buffer size ", 0, 0, 2 * fontWidth); myBufferSizeSlider->setMinValue(1); myBufferSizeSlider->setMaxValue(AudioSettings::MAX_BUFFER_SIZE); wid.push_back(myBufferSizeSlider);