diff --git a/GUI.NET/Debugger/HdPackCopyHelper.cs b/GUI.NET/Debugger/HdPackCopyHelper.cs index b57a8fbd..a5c0bf0d 100644 --- a/GUI.NET/Debugger/HdPackCopyHelper.cs +++ b/GUI.NET/Debugger/HdPackCopyHelper.cs @@ -24,6 +24,11 @@ namespace Mesen.GUI.Debugger } } _paletteRam = InteropEmu.DebugGetMemoryState(DebugMemoryType.PaletteMemory); + + for(int i = 4; i < 4 * 8; i += 4) { + //Override color 0 in each palette with the background color + _paletteRam[i] = _paletteRam[0]; + } } public string ToHdPackFormat(int tileAddr, int palette, bool forSprite, bool isAbsoluteAddress) diff --git a/GUI.NET/InteropEmu.cs b/GUI.NET/InteropEmu.cs index 832f699c..52930a78 100644 --- a/GUI.NET/InteropEmu.cs +++ b/GUI.NET/InteropEmu.cs @@ -505,6 +505,11 @@ namespace Mesen.GUI hFrameData.Free(); } + for(int i = 4; i < 4*8; i += 4) { + //Override color 0 in each palette with the background color + frameData[i] = frameData[0]; + } + return frameData; }