Fix Umihara Kawase's brightness fluctuation.

This commit is contained in:
Brandon Wright 2018-06-13 12:03:05 -05:00
parent 6c4954c5be
commit 044ebbd057
1 changed files with 5 additions and 1 deletions

View File

@ -312,7 +312,11 @@ void S9xUpdateIRQPositions (bool initial)
PPU.HTimerPosition += PPU.IRQHBeamPos > 326 ? (ONE_DOT_CYCLE / 2) : 0;
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;
}