Hide bottom scanline when playing SGB games

For standalone
This commit is contained in:
ds22x 2021-02-17 16:06:41 +01:00 committed by GitHub
parent be0ee7652c
commit 8a441828e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -216,7 +216,14 @@ auto Program::videoFrame(const uint16* data, uint pitch, uint width, uint height
if(!settings.video.overscan) {
uint multiplier = height / 240;
data += 8 * multiplier * pitch;
height -= 16 * multiplier;
if (gameBoy.program)
{
height -= 16.1 * multiplier;
}
else
{
height -= 16 * multiplier;
}
}
uint outputWidth, outputHeight;