1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct VI_UpdateSize() cast float to u32.

This commit is contained in:
Sergey Lipskiy 2014-12-24 16:09:04 +06:00
parent 3fd33ec64b
commit 949508d652

4
VI.cpp
View File

@ -61,9 +61,9 @@ void VI_UpdateSize()
--VI.real_height;
const bool isPAL = (*REG.VI_V_SYNC & 0x3ff) > 550;
if (isPAL && (vEnd - vStart) > 480)
VI.height = VI.real_height*1.0041841f;
VI.height = (u32)(VI.real_height*1.0041841f);
else
VI.height = VI.real_height*1.0126582f;
VI.height = (u32)(VI.real_height*1.0126582f);
// const int fsaa = ((*REG.VI_STATUS) >> 8) & 3;
// const int divot = ((*REG.VI_STATUS) >> 4) & 1;