Libretro: Hide bottom most scanline when playing SGB games

This commit is contained in:
ds22x 2021-02-17 16:07:54 +01:00 committed by GitHub
parent 8a441828e1
commit 943b2e6cc6
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);
}