From 5dc2ebcd2212036dab04c5515ba0618209decbac Mon Sep 17 00:00:00 2001 From: ds22x <45218067+ds22x@users.noreply.github.com> Date: Sat, 13 Feb 2021 17:38:01 +0100 Subject: [PATCH] Hide Bottom Most Scanline When Playing SGB Games For Libretro Second verse same as the first. --- bsnes/target-libretro/program.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bsnes/target-libretro/program.cpp b/bsnes/target-libretro/program.cpp index 9f101908..a8d10d93 100644 --- a/bsnes/target-libretro/program.cpp +++ b/bsnes/target-libretro/program.cpp @@ -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); }