From e456406b6904a367efa071e7a85a8a810f6d0968 Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 13 Jul 2015 14:46:52 +0000 Subject: [PATCH] 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 --- Changes.txt | 4 ++++ src/emucore/EventHandler.cxx | 1 + 2 files changed, 5 insertions(+) diff --git a/Changes.txt b/Changes.txt index ee314e21a..0ab5ba6db 100644 --- a/Changes.txt +++ b/Changes.txt @@ -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. diff --git a/src/emucore/EventHandler.cxx b/src/emucore/EventHandler.cxx index 3db192ed3..6c82ac372 100644 --- a/src/emucore/EventHandler.cxx +++ b/src/emucore/EventHandler.cxx @@ -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