mirror of https://github.com/bsnes-emu/bsnes.git
Libretro: Hide bottom most scanline when playing SGB games
This commit is contained in:
parent
8a441828e1
commit
943b2e6cc6
|
@ -243,7 +243,14 @@ auto Program::videoFrame(const uint16* data, uint pitch, uint width, uint height
|
||||||
{
|
{
|
||||||
uint multiplier = height / 240;
|
uint multiplier = height / 240;
|
||||||
data += 8 * (pitch >> 1) * multiplier;
|
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);
|
video_cb(data, width, height, pitch);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue