Debugger: Fixed background color being incorrect in HD pack copy function
This commit is contained in:
parent
bafd73f186
commit
241b09964b
2 changed files with 10 additions and 0 deletions
|
@ -24,6 +24,11 @@ namespace Mesen.GUI.Debugger
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_paletteRam = InteropEmu.DebugGetMemoryState(DebugMemoryType.PaletteMemory);
|
_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)
|
public string ToHdPackFormat(int tileAddr, int palette, bool forSprite, bool isAbsoluteAddress)
|
||||||
|
|
|
@ -505,6 +505,11 @@ namespace Mesen.GUI
|
||||||
hFrameData.Free();
|
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;
|
return frameData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue