mirror of https://github.com/snes9xgit/snes9x.git
Fix Umihara Kawase's brightness fluctuation.
This commit is contained in:
parent
6c4954c5be
commit
044ebbd057
6
ppu.cpp
6
ppu.cpp
|
@ -312,7 +312,11 @@ void S9xUpdateIRQPositions (bool initial)
|
||||||
PPU.HTimerPosition += PPU.IRQHBeamPos > 326 ? (ONE_DOT_CYCLE / 2) : 0;
|
PPU.HTimerPosition += PPU.IRQHBeamPos > 326 ? (ONE_DOT_CYCLE / 2) : 0;
|
||||||
PPU.VTimerPosition = PPU.IRQVBeamPos;
|
PPU.VTimerPosition = PPU.IRQVBeamPos;
|
||||||
|
|
||||||
if (!PPU.HTimerEnabled && !PPU.VTimerEnabled)
|
if (PPU.VTimerEnabled && (PPU.VTimerPosition >= (Timings.V_Max + (IPPU.Interlace ? 1 : 0))))
|
||||||
|
{
|
||||||
|
Timings.NextIRQTimer = 0x0fffffff;
|
||||||
|
}
|
||||||
|
else if (!PPU.HTimerEnabled && !PPU.VTimerEnabled)
|
||||||
{
|
{
|
||||||
Timings.NextIRQTimer = 0x0fffffff;
|
Timings.NextIRQTimer = 0x0fffffff;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue