For Qt GUI, added logic to clear screen to black pixels on ROM close.

This commit is contained in:
mjbudd77 2021-05-30 11:19:14 -04:00
parent 68e43eeb6b
commit ced185df89
1 changed files with 6 additions and 0 deletions

View File

@ -401,6 +401,12 @@ CloseGame(void)
{
std::string filename;
if ( nes_shm )
{ // Clear Screen on Game Close
nes_shm->clear_pixbuf();
nes_shm->blitUpdated = 1;
}
if (!isloaded) {
return(0);
}