PPU: Fixed issue with rendering when register write was on cycle 278 (caused a flickering scanline in Wild Guns)

This commit is contained in:
Sour 2019-04-11 19:39:40 -04:00
parent bc706a0fda
commit 9d90fb9e52

View file

@ -1370,7 +1370,7 @@ uint8_t Ppu::Read(uint16_t addr)
void Ppu::Write(uint32_t addr, uint8_t value)
{
if(_scanline <= (_overscanMode ? 239 : 224) && _scanline > 0 && _hClock >= 22*4 && _hClock <= 277*4) {
if(_scanline < _vblankStart && _scanline > 0 && _hClock >= 22*4 && _hClock <= 278*4) {
RenderScanline();
}