mirror of https://github.com/stella-emu/stella.git
Don't calculate palette before all sliders have initialized.
This commit is contained in:
parent
c120d345e4
commit
02565719a5
|
@ -941,21 +941,49 @@ void VideoAudioDialog::handlePaletteUpdate()
|
||||||
// TIA Palette
|
// TIA Palette
|
||||||
instance().settings().setValue("palette",
|
instance().settings().setValue("palette",
|
||||||
myTIAPalette->getSelectedTag().toString());
|
myTIAPalette->getSelectedTag().toString());
|
||||||
|
|
||||||
// Palette adjustables
|
// Palette adjustables
|
||||||
PaletteHandler::Adjustable paletteAdj;
|
PaletteHandler::Adjustable paletteAdj;
|
||||||
|
|
||||||
|
if (myPhaseShiftNtsc->getValue() < 0) return;
|
||||||
paletteAdj.phaseNtsc = myPhaseShiftNtsc->getValue();
|
paletteAdj.phaseNtsc = myPhaseShiftNtsc->getValue();
|
||||||
|
|
||||||
|
if (myPhaseShiftPal->getValue() < 0) return;
|
||||||
paletteAdj.phasePal = myPhaseShiftPal->getValue();
|
paletteAdj.phasePal = myPhaseShiftPal->getValue();
|
||||||
|
|
||||||
|
if (myTVRedScale->getValue() < 0) return;
|
||||||
paletteAdj.redScale = myTVRedScale->getValue();
|
paletteAdj.redScale = myTVRedScale->getValue();
|
||||||
|
|
||||||
|
if (myTVRedShift->getValue() < 0) return;
|
||||||
paletteAdj.redShift = myTVRedShift->getValue();
|
paletteAdj.redShift = myTVRedShift->getValue();
|
||||||
|
|
||||||
|
if (myTVGreenScale->getValue() < 0) return;
|
||||||
paletteAdj.greenScale = myTVGreenScale->getValue();
|
paletteAdj.greenScale = myTVGreenScale->getValue();
|
||||||
|
|
||||||
|
if (myTVGreenShift->getValue() < 0) return;
|
||||||
paletteAdj.greenShift = myTVGreenShift->getValue();
|
paletteAdj.greenShift = myTVGreenShift->getValue();
|
||||||
|
|
||||||
|
if (myTVBlueScale->getValue() < 0) return;
|
||||||
paletteAdj.blueScale = myTVBlueScale->getValue();
|
paletteAdj.blueScale = myTVBlueScale->getValue();
|
||||||
|
|
||||||
|
if (myTVBlueShift->getValue() < 0) return;
|
||||||
paletteAdj.blueShift = myTVBlueShift->getValue();
|
paletteAdj.blueShift = myTVBlueShift->getValue();
|
||||||
|
|
||||||
|
if (myTVHue->getValue() < 0) return;
|
||||||
paletteAdj.hue = myTVHue->getValue();
|
paletteAdj.hue = myTVHue->getValue();
|
||||||
|
|
||||||
|
if (myTVSatur->getValue() < 0) return;
|
||||||
paletteAdj.saturation = myTVSatur->getValue();
|
paletteAdj.saturation = myTVSatur->getValue();
|
||||||
|
|
||||||
|
if (myTVContrast->getValue() < 0) return;
|
||||||
paletteAdj.contrast = myTVContrast->getValue();
|
paletteAdj.contrast = myTVContrast->getValue();
|
||||||
|
|
||||||
|
if (myTVBright->getValue() < 0) return;
|
||||||
paletteAdj.brightness = myTVBright->getValue();
|
paletteAdj.brightness = myTVBright->getValue();
|
||||||
|
|
||||||
|
if (myTVGamma->getValue() < 0) return;
|
||||||
paletteAdj.gamma = myTVGamma->getValue();
|
paletteAdj.gamma = myTVGamma->getValue();
|
||||||
|
|
||||||
instance().frameBuffer().tiaSurface().paletteHandler().setAdjustables(paletteAdj);
|
instance().frameBuffer().tiaSurface().paletteHandler().setAdjustables(paletteAdj);
|
||||||
|
|
||||||
if(instance().hasConsole())
|
if(instance().hasConsole())
|
||||||
|
|
Loading…
Reference in New Issue