From 4a568c984d547c271a21be0a764b24fa1e2a24eb Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sun, 28 Sep 2014 13:46:27 +0700 Subject: [PATCH] Change VI height correction constant for PAL games. Fixed Armorines (E). --- VI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VI.cpp b/VI.cpp index e0a10eee..227c8cca 100644 --- a/VI.cpp +++ b/VI.cpp @@ -34,7 +34,11 @@ void VI_UpdateSize() VI.real_height = (vEnd - vStart) << 1; else VI.real_height = (vEnd - vStart) * yScale; - VI.height = VI.real_height*1.0126582f; + const bool isPAL = (*REG.VI_V_SYNC & 0x3ff) > 550; + if (isPAL && (vEnd - vStart) > 237) + VI.height = VI.real_height*1.0041841f; + else + VI.height = VI.real_height*1.0126582f; if (VI.width == 0.0f) VI.width = *REG.VI_WIDTH;