mirror of https://github.com/stella-emu/stella.git
Only invalidate TIA surface when vcenter adjust has been changed.
This commit is contained in:
parent
b5fa5f462e
commit
157c83d975
|
@ -226,7 +226,6 @@ void TIASurface::enableNTSC(bool enable)
|
|||
myTiaSurface->setSrcSize(surfaceWidth, myTIA->height());
|
||||
|
||||
myTiaSurface->invalidate();
|
||||
myTIA->clearFrameBuffer();
|
||||
}
|
||||
|
||||
mySLineSurface->setSrcSize(1, 2 * myTIA->height());
|
||||
|
|
|
@ -416,7 +416,7 @@ void VideoDialog::saveConfig()
|
|||
// Aspect ratio setting (NTSC and PAL)
|
||||
int oldAdjust = instance().settings().getInt("tia.vsizeadjust");
|
||||
int newAdjust = myVSizeAdjust->getValue();
|
||||
bool initializeVideo = oldAdjust != newAdjust;
|
||||
bool vsizeChanged = oldAdjust != newAdjust;
|
||||
|
||||
instance().settings().setValue("tia.vsizeadjust", newAdjust);
|
||||
|
||||
|
@ -477,11 +477,11 @@ void VideoDialog::saveConfig()
|
|||
instance().settings().setValue("tv.scanlines", myTVScanIntense->getValueLabel());
|
||||
|
||||
if (instance().hasConsole())
|
||||
{
|
||||
instance().console().setTIAProperties();
|
||||
// TODO: display the new screen (currently all blank)
|
||||
if (initializeVideo)
|
||||
instance().console().initializeVideo();
|
||||
|
||||
if (vsizeChanged && instance().hasConsole()) {
|
||||
instance().console().tia().clearFrameBuffer();
|
||||
instance().console().initializeVideo();
|
||||
}
|
||||
|
||||
// Finally, issue a complete framebuffer re-initialization...
|
||||
|
|
Loading…
Reference in New Issue