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

Correct VI_UpdateSize() for pal games.

Fixed Donkey Kong (E), issue #355
This commit is contained in:
Sergey Lipskiy 2015-04-09 17:20:37 +06:00
parent 5f8d720916
commit 752ca93765

2
VI.cpp
View File

@ -50,7 +50,7 @@ void VI_UpdateSize()
VI.width = min((u32)floorf((hEnd - hStart)*xScale + 0.5f), *REG.VI_WIDTH);
const bool isPAL = (*REG.VI_V_SYNC & 0x3ff) > 550;
if (isPAL && (vEnd - vStart) > 480) {
if (isPAL && (vEnd - vStart) > 478) {
VI.height = (u32)(VI.real_height*1.0041841f);
if (VI.height > 576)
VI.height = VI.real_height = 576;