mirror of https://github.com/stella-emu/stella.git
Fix headroom / buffer size slider min values.
This commit is contained in:
parent
95867f91cd
commit
cac27b5260
|
@ -126,7 +126,7 @@ AudioDialog::AudioDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
int swidth = pwidth+23;
|
int swidth = pwidth+23;
|
||||||
myHeadroomSlider = new SliderWidget(this, font, xpos, ypos, swidth, lineHeight,
|
myHeadroomSlider = new SliderWidget(this, font, xpos, ypos, swidth, lineHeight,
|
||||||
"Headroom ", 0, kHeadroomChanged, 10 * fontWidth);
|
"Headroom ", 0, kHeadroomChanged, 10 * fontWidth);
|
||||||
myHeadroomSlider->setMinValue(1); myHeadroomSlider->setMaxValue(AudioSettings::MAX_HEADROOM);
|
myHeadroomSlider->setMinValue(0); myHeadroomSlider->setMaxValue(AudioSettings::MAX_HEADROOM);
|
||||||
myHeadroomSlider->setTickmarkInterval(3);
|
myHeadroomSlider->setTickmarkInterval(3);
|
||||||
|
|
||||||
wid.push_back(myHeadroomSlider);
|
wid.push_back(myHeadroomSlider);
|
||||||
|
@ -135,7 +135,7 @@ AudioDialog::AudioDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
// Param 2
|
// Param 2
|
||||||
myBufferSizeSlider = new SliderWidget(this, font, xpos, ypos, swidth, lineHeight,
|
myBufferSizeSlider = new SliderWidget(this, font, xpos, ypos, swidth, lineHeight,
|
||||||
"Buffer size ", 0, kBufferSizeChanged, 10 * fontWidth);
|
"Buffer size ", 0, kBufferSizeChanged, 10 * fontWidth);
|
||||||
myBufferSizeSlider->setMinValue(1); myBufferSizeSlider->setMaxValue(AudioSettings::MAX_BUFFER_SIZE);
|
myBufferSizeSlider->setMinValue(0); myBufferSizeSlider->setMaxValue(AudioSettings::MAX_BUFFER_SIZE);
|
||||||
myBufferSizeSlider->setTickmarkInterval(3);
|
myBufferSizeSlider->setTickmarkInterval(3);
|
||||||
wid.push_back(myBufferSizeSlider);
|
wid.push_back(myBufferSizeSlider);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue