PPU: Fixed issue with rendering when register write was on cycle 278 (caused a flickering scanline in Wild Guns)
This commit is contained in:
parent
bc706a0fda
commit
9d90fb9e52
1 changed files with 1 additions and 1 deletions
|
@ -1370,7 +1370,7 @@ uint8_t Ppu::Read(uint16_t addr)
|
||||||
|
|
||||||
void Ppu::Write(uint32_t addr, uint8_t value)
|
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();
|
RenderScanline();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue