Make sure PPU state is defined at bootup (and make bootup screen gray)
This commit is contained in:
parent
f4613a6ec9
commit
b821350385
1 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,10 @@ PPU::PPU(MemoryManager *memoryManager)
|
|||
|
||||
_currentOutputBuffer = _outputBuffers[0];
|
||||
|
||||
memset(_paletteRAM, 0x0F, 0x20);
|
||||
memset(_spriteRAM, 0xFF, 0x100);
|
||||
memset(_secondarySpriteRAM, 0xFF, 0x20);
|
||||
|
||||
Reset();
|
||||
}
|
||||
|
||||
|
@ -35,8 +39,6 @@ void PPU::Reset()
|
|||
_cycle = -1;
|
||||
_frameCount = 0;
|
||||
_memoryReadBuffer = 0;
|
||||
|
||||
memset(_spriteRAM, 0xFF, 0x100);
|
||||
}
|
||||
|
||||
void PPU::SetNesModel(NesModel model)
|
||||
|
|
Loading…
Add table
Reference in a new issue