From b6e91aef32ff5c737f73872899b187c7770236c5 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Mon, 2 Aug 2021 11:44:11 -0400 Subject: [PATCH] SMS: make undrawn area black, overscan itelf still needs reworking, fixes #2892 --- .../Consoles/Sega/SMS/VDP.Mode4.cs | 11 +++++++---- src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/VDP.cs | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/VDP.Mode4.cs b/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/VDP.Mode4.cs index b05fca6047..bb6b8c63e3 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/VDP.Mode4.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Sega/SMS/VDP.Mode4.cs @@ -304,25 +304,28 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem OverscanFrameBuffer = new int[OverscanFrameHeight * OverscanFrameWidth]; } + // TODO: overscan color can change, this should be calculated per scanline, not done in bulk at the end + int overscan_color = Palette[BackdropColor]; + // Top overscan for (int y=0; y Palette[BackdropColor]; + public int BackgroundColor => unchecked((int)0xFF000000); public int VsyncNumerator => DisplayType == DisplayType.NTSC ? 60 : 50;