mirror of https://github.com/stella-emu/stella.git
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
This commit is contained in:
parent
b9c7b34505
commit
a9e007ca24
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// 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 <algorithm>
|
#include <algorithm>
|
||||||
|
@ -1341,7 +1341,6 @@ bool EventHandler::enterDebugMode()
|
||||||
myState = S_DEBUGGER;
|
myState = S_DEBUGGER;
|
||||||
myOSystem->createFrameBuffer();
|
myOSystem->createFrameBuffer();
|
||||||
myOSystem->debugger().reStack();
|
myOSystem->debugger().reStack();
|
||||||
myOSystem->frameBuffer().refreshOverlay();
|
|
||||||
myOSystem->frameBuffer().setCursorState();
|
myOSystem->frameBuffer().setCursorState();
|
||||||
myEvent->clear();
|
myEvent->clear();
|
||||||
|
|
||||||
|
@ -1351,6 +1350,10 @@ bool EventHandler::enterDebugMode()
|
||||||
// Make sure debugger starts in a consistent state
|
// Make sure debugger starts in a consistent state
|
||||||
myOSystem->debugger().setStartState();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue