mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Correct VI_UpdateSize() for pal games.
Fixed Donkey Kong (E), issue #355
This commit is contained in:
parent
5f8d720916
commit
752ca93765
2
VI.cpp
2
VI.cpp
|
@ -50,7 +50,7 @@ void VI_UpdateSize()
|
||||||
VI.width = min((u32)floorf((hEnd - hStart)*xScale + 0.5f), *REG.VI_WIDTH);
|
VI.width = min((u32)floorf((hEnd - hStart)*xScale + 0.5f), *REG.VI_WIDTH);
|
||||||
|
|
||||||
const bool isPAL = (*REG.VI_V_SYNC & 0x3ff) > 550;
|
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);
|
VI.height = (u32)(VI.real_height*1.0041841f);
|
||||||
if (VI.height > 576)
|
if (VI.height > 576)
|
||||||
VI.height = VI.real_height = 576;
|
VI.height = VI.real_height = 576;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user