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

Correct VI width calculation.

Fixed VI width in Cyber Tiger.
This commit is contained in:
Sergey Lipskiy 2014-10-03 16:48:54 +07:00
parent 9d72e182cf
commit 75bf4004cb

2
VI.cpp
View File

@ -36,6 +36,8 @@ void VI_UpdateSize()
VI.interlaced = (*REG.VI_STATUS & 0x40) != 0;
VI.width = (u32)floor((hEnd - hStart) * xScale + 0.5f);
if (*REG.VI_WIDTH > 0)
VI.width = min(VI.width, *REG.VI_WIDTH);
if (VI.interlaced && _SHIFTR(*REG.VI_Y_SCALE, 0, 12) == 1024)
VI.real_height = (vEnd - vStart);