libretro: always show overscan are if overscan is enabled

This commit is contained in:
OV2 2012-04-15 21:44:25 +02:00
parent 50013f9a19
commit 9551890d0d
1 changed files with 15 additions and 0 deletions

View File

@ -609,6 +609,21 @@ bool8 S9xDeinitUpdate(int width, int height)
height = SNES_HEIGHT;
}
}
else
{
if (height > SNES_HEIGHT_EXTENDED)
{
if (height < SNES_HEIGHT_EXTENDED << 1)
memset(GFX.Screen + (GFX.Pitch >> 1) * height,0,GFX.Pitch * ((SNES_HEIGHT_EXTENDED << 1) - height));
height = SNES_HEIGHT_EXTENDED << 1;
}
else
{
if (height < SNES_HEIGHT_EXTENDED)
memset(GFX.Screen + (GFX.Pitch >> 1) * height,0,GFX.Pitch * (SNES_HEIGHT_EXTENDED - height));
height = SNES_HEIGHT_EXTENDED;
}
}
s9x_video_cb(GFX.Screen, width, height, GFX.Pitch);
return TRUE;