From 8a441828e1025fffc59f918957c7fe263811a6b8 Mon Sep 17 00:00:00 2001 From: ds22x <45218067+ds22x@users.noreply.github.com> Date: Wed, 17 Feb 2021 16:06:41 +0100 Subject: [PATCH] Hide bottom scanline when playing SGB games For standalone --- bsnes/target-bsnes/program/platform.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bsnes/target-bsnes/program/platform.cpp b/bsnes/target-bsnes/program/platform.cpp index c316c7c3..48c2b85c 100644 --- a/bsnes/target-bsnes/program/platform.cpp +++ b/bsnes/target-bsnes/program/platform.cpp @@ -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;