Small fix to the timing revert: need to use gsRegionMode now since scansPerFrame isn't fixed anymore.

(NTSC modes would fail to update the vblank variable)
This commit is contained in:
ramapcsx2 2015-12-05 02:07:27 +01:00
parent ff2845b2d2
commit 601d18272b
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ static void vSyncInfoCalc(vSyncTimingInfo* info, Fixed100 framesPerSecond, u32 s
u64 HalfFrame = Frame / 2;
u64 Blank = (Frame / scansPerFrame) * 22; // PAL VBlank Period is roughly 22 HSyncs
if (scansPerFrame == SCANLINES_TOTAL_NTSC)
if (gsRegionMode == Region_NTSC)
Blank = (Frame / scansPerFrame) * 26; // NTSC VBlank Period is roughly 26 HSyncs, so we update
//I would have suspected this to be Frame - Blank, but that seems to completely freak it out