From 6a9f1075d2dfc2fb6d7fd3d9dd578e90a1393b92 Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Sat, 25 Sep 2021 19:07:17 +0200 Subject: [PATCH] fixed #830 (Debugger window messed up) --- src/emucore/Console.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/emucore/Console.cxx b/src/emucore/Console.cxx index 4d201aba1..511496961 100644 --- a/src/emucore/Console.cxx +++ b/src/emucore/Console.cxx @@ -472,11 +472,14 @@ void Console::setFormat(uInt32 format, bool force) myConsoleInfo.DisplayFormat = myDisplayFormat + autodetected; setTIAProperties(); - initializeVideo(); // takes care of refreshing the screen - initializeAudio(); // ensure that audio synthesis is set up to match emulation rate - myOSystem.resetFps(); // Reset FPS measurement + if(myOSystem.eventHandler().inTIAMode()) + { + initializeVideo(); // takes care of refreshing the screen + initializeAudio(); // ensure that audio synthesis is set up to match emulation rate + myOSystem.resetFps(); // Reset FPS measurement - myOSystem.frameBuffer().showTextMessage(message); + myOSystem.frameBuffer().showTextMessage(message); + } // Let the other devices know about the console change mySystem->consoleChanged(myConsoleTiming);