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:
stephena 2009-05-15 10:12:18 +00:00
parent 85c4b3d882
commit a0c2ae8afa
1 changed files with 8 additions and 0 deletions

View File

@ -931,6 +931,14 @@ void EventHandler::handleEvent(Event::Type event, int state)
break;
////////////////////////////////////////////////////////////////////////
case Event::ConsoleReset:
if(state)
{
myOSystem->console().tia().frameReset();
myOSystem->frameBuffer().refresh();
}
break;
case Event::Fry:
myFryingFlag = bool(state);
return;