From 785fe6b2e3c7ca4b1e7649c7ccd10125a45b8b88 Mon Sep 17 00:00:00 2001 From: Akash Date: Fri, 29 Dec 2017 10:07:21 +0530 Subject: [PATCH] Counters: Fix Hblank calculation for DVD videmodes Previously, the DVD variant NTSC/PAL modes used the horizontal blanking interval calculation algorithm used by digital video modes, which shouldn't be used and also rounding error check was neglected. Added the DVD variant modes to the list in analog video mode finder subroutine. This should impact timing/vertical synchronization in PSX games significantly. --- pcsx2/Counters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/Counters.cpp b/pcsx2/Counters.cpp index 2db62f0799..c45bef86ef 100644 --- a/pcsx2/Counters.cpp +++ b/pcsx2/Counters.cpp @@ -59,7 +59,7 @@ static void rcntWhold(int index, u32 value); static bool IsAnalogVideoMode() { - return (gsVideoMode == GS_VideoMode::PAL || gsVideoMode == GS_VideoMode::NTSC); + return (gsVideoMode == GS_VideoMode::PAL || gsVideoMode == GS_VideoMode::NTSC || gsVideoMode == GS_VideoMode::DVD_NTSC || gsVideoMode == GS_VideoMode::DVD_PAL); } void rcntReset(int index) {