Fixed OSX snapshot bug; the TIA image wasn't being completely drawn before

taking a snapshot.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3186 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2015-07-13 14:46:52 +00:00
parent 05623c52eb
commit e456406b69
2 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,10 @@
'cursor'. The new argument allows to set mouse cursor visibility
separately for both UI and emulation modes.
* Fixed snapshot bug most noticeable in MacOSX, where taking a snapshot
of a TIA image sometimes left parts of the UI onscreen (and in the
resulting picture).
* Fixed memory leak; the game console wasn't being closed after exiting
a ROM.

View File

@ -1875,6 +1875,7 @@ void EventHandler::takeSnapshot(uInt32 number)
{
// Make sure we have a 'clean' image, with no onscreen messages
myOSystem.frameBuffer().enableMessages(false);
myOSystem.frameBuffer().tiaSurface().render();
string message = "Snapshot saved";
try