This commit is contained in:
thrust26 2018-09-14 19:00:45 +02:00
parent b32c71d6f4
commit 02b0c13aca
1 changed files with 8 additions and 10 deletions

View File

@ -532,10 +532,11 @@ void GameInfoDialog::saveConfig()
// Display properties // Display properties
myGameProperties.set(Display_Format, myFormat->getSelectedTag().toString()); myGameProperties.set(Display_Format, myFormat->getSelectedTag().toString());
myGameProperties.set(Display_YStart, myYStart->getValueLabel() == "Auto" ? "0" :
myYStart->getValueLabel());
myGameProperties.set(Display_Height, myHeight->getValueLabel() == "Auto" ? "0" : myGameProperties.set(Display_Height, myHeight->getValueLabel() == "Auto" ? "0" :
myHeight->getValueLabel()); myHeight->getValueLabel());
myGameProperties.set(Display_Phosphor, myPhosphor->getState() ? "YES" : "NO"); myGameProperties.set(Display_Phosphor, myPhosphor->getState() ? "YES" : "NO");
myGameProperties.set(Display_PPBlend, myPPBlend->getValueLabel() == "Default" ? "0" : myGameProperties.set(Display_PPBlend, myPPBlend->getValueLabel() == "Default" ? "0" :
myPPBlend->getValueLabel()); myPPBlend->getValueLabel());
@ -558,9 +559,13 @@ void GameInfoDialog::saveConfig()
// update 'Display' tab settings immediately // update 'Display' tab settings immediately
bool reset = false; bool reset = false;
instance().console().setFormat(myFormat->getSelected()); instance().console().setFormat(myFormat->getSelected());
instance().console().updateYStart(myYStart->getValue()); if(uInt32(myYStart->getValue()) != instance().console().tia().ystart())
{
instance().console().updateYStart(myYStart->getValue());
reset = true;
}
if(uInt32(myHeight->getValue()) != TIAConstants::minViewableHeight - 1 && if(/*uInt32(myHeight->getValue()) != TIAConstants::minViewableHeight - 1 &&*/
uInt32(myHeight->getValue()) != instance().console().tia().height()) uInt32(myHeight->getValue()) != instance().console().tia().height())
{ {
instance().console().tia().setHeight(myHeight->getValue()); instance().console().tia().setHeight(myHeight->getValue());
@ -574,13 +579,6 @@ void GameInfoDialog::saveConfig()
// So we make sure we have a valid image when the dialog exits // So we make sure we have a valid image when the dialog exits
instance().console().tia().renderToFrameBuffer(); instance().console().tia().renderToFrameBuffer();
} }
else
{
myGameProperties.set(
Display_YStart,
myYStart->getValueLabel() == "Auto" ? "0" : myYStart->getValueLabel()
);
}
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -