PCE: fix dumb error in display-off background color calculation, fixes soldier blade flashing wrong color

This commit is contained in:
beirich 2012-11-11 05:04:29 +00:00
parent 5574e335bb
commit 8cebe897cb
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ namespace BizHawk.Emulation.Consoles.TurboGrafx
if (BackgroundEnabled == false)
{
for (int i = 0; i < FrameWidth; i++)
FrameBuffer[(ActiveLine * FramePitch) + i] = vce.Palette[0];
FrameBuffer[(ActiveLine * FramePitch) + i] = vce.Palette[256];
return;
}

View File

@ -288,7 +288,7 @@ namespace BizHawk.Emulation.Consoles.TurboGrafx
// Initialize scanline to background color
for (int i = 0; i < FrameWidth; i++)
FrameBuffer[(scanline * FrameWidth) + i] = VCE.Palette[0];
FrameBuffer[(scanline * FrameWidth) + i] = VCE.Palette[256];
}
void RenderBackgroundScanline(VDC vdc, byte priority, bool show)