From a9e007ca24e74cea679e02e7ef45f8f900c38e95 Mon Sep 17 00:00:00 2001 From: stephena Date: Thu, 21 Jul 2005 12:56:26 +0000 Subject: [PATCH] Fixed bug whereby debugger wasn't being drawn in software mode when entering on a breakpoint. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@688 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/emucore/EventHandler.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stella/src/emucore/EventHandler.cxx b/stella/src/emucore/EventHandler.cxx index fd946ef18..8c6ae81fe 100644 --- a/stella/src/emucore/EventHandler.cxx +++ b/stella/src/emucore/EventHandler.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: EventHandler.cxx,v 1.80 2005-07-10 02:15:58 stephena Exp $ +// $Id: EventHandler.cxx,v 1.81 2005-07-21 12:56:26 stephena Exp $ //============================================================================ #include @@ -1341,7 +1341,6 @@ bool EventHandler::enterDebugMode() myState = S_DEBUGGER; myOSystem->createFrameBuffer(); myOSystem->debugger().reStack(); - myOSystem->frameBuffer().refreshOverlay(); myOSystem->frameBuffer().setCursorState(); myEvent->clear(); @@ -1351,6 +1350,10 @@ bool EventHandler::enterDebugMode() // Make sure debugger starts in a consistent state myOSystem->debugger().setStartState(); + // Make sure screen is always refreshed when entering debug mode + // (sometimes entering on a breakpoint doesn't draw contents) + myOSystem->frameBuffer().refreshOverlay(true); + return true; }