mirror of https://github.com/stella-emu/stella.git
Fix bug when taking snapshots in 1x mode; once started, it never stopped.
This commit is contained in:
parent
933c4d7d3c
commit
9c1b9ae00e
|
@ -418,7 +418,10 @@ void TIASurface::render()
|
|||
mySLineSurface->render();
|
||||
|
||||
if(mySaveSnapFlag)
|
||||
{
|
||||
myOSystem.png().takeSnapshot();
|
||||
mySaveSnapFlag = false;
|
||||
}
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
@ -427,6 +430,8 @@ void TIASurface::renderForSnapshot()
|
|||
// TODO: This is currently called from PNGLibrary::takeSnapshot() only
|
||||
// Therefore the code could be simplified.
|
||||
// At some point, we will probably merge some of the functionality.
|
||||
// Furthermore, toggling the variable 'mySaveSnapFlag' in different places
|
||||
// is brittle, especially since rendering can happen in a different thread.
|
||||
|
||||
uInt32 width = myTIA->width();
|
||||
uInt32 height = myTIA->height();
|
||||
|
|
Loading…
Reference in New Issue