mirror of https://github.com/stella-emu/stella.git
Make sure that when a ROM is reset, the screen is erased (both screens if
double-buffering is used). This is very evident in games like Q-Bert, where parts of an old screen/game are overlaid with a new one. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1725 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
85c4b3d882
commit
a0c2ae8afa
|
@ -931,6 +931,14 @@ void EventHandler::handleEvent(Event::Type event, int state)
|
||||||
break;
|
break;
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
case Event::ConsoleReset:
|
||||||
|
if(state)
|
||||||
|
{
|
||||||
|
myOSystem->console().tia().frameReset();
|
||||||
|
myOSystem->frameBuffer().refresh();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case Event::Fry:
|
case Event::Fry:
|
||||||
myFryingFlag = bool(state);
|
myFryingFlag = bool(state);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue