Hide Bottom Most Scanline When Playing SGB Games For Libretro

Second verse same as the first.
This commit is contained in:
ds22x 2021-02-13 17:38:01 +01:00 committed by GitHub
parent 9975ede3ef
commit 5dc2ebcd22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -243,7 +243,14 @@ auto Program::videoFrame(const uint16* data, uint pitch, uint width, uint height
{
uint multiplier = height / 240;
data += 8 * (pitch >> 1) * multiplier;
height -= 16 * multiplier;
if (program->gameBoy.program)
{
height -= 16.1 * multiplier;
}
else
{
height -= 16 * multiplier;
}
}
video_cb(data, width, height, pitch);
}