Debugger: Fixed background color being incorrect in HD pack copy function

This commit is contained in:
Sour 2020-04-19 16:52:19 -04:00
parent bafd73f186
commit 241b09964b
2 changed files with 10 additions and 0 deletions

View file

@ -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)

View file

@ -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;
}