Clean overscan area when turning off extended.

This commit is contained in:
Brandon Wright 2018-10-24 16:02:16 -05:00
parent ad373237e4
commit e2640286b7
1 changed files with 7 additions and 0 deletions

View File

@ -1633,6 +1633,13 @@ S9xRealDeinitUpdate (int width, int height)
{
int yoffset = 0;
if (top_level->last_height > height)
{
memset (GFX.Screen + (GFX.Pitch >> 1) * height,
0,
GFX.Pitch * (top_level->last_height - height));
}
top_level->last_height = height;
top_level->last_width = width;