1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Change VI height correction constant for PAL games.

Fixed Armorines (E).
This commit is contained in:
Sergey Lipskiy 2014-09-28 13:46:27 +07:00
parent 5eac0797f0
commit 4a568c984d

6
VI.cpp
View File

@ -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;