mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Correct VI_UpdateSize() cast float to u32.
This commit is contained in:
parent
3fd33ec64b
commit
949508d652
4
VI.cpp
4
VI.cpp
|
@ -61,9 +61,9 @@ void VI_UpdateSize()
|
||||||
--VI.real_height;
|
--VI.real_height;
|
||||||
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) > 480)
|
||||||
VI.height = VI.real_height*1.0041841f;
|
VI.height = (u32)(VI.real_height*1.0041841f);
|
||||||
else
|
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 fsaa = ((*REG.VI_STATUS) >> 8) & 3;
|
||||||
// const int divot = ((*REG.VI_STATUS) >> 4) & 1;
|
// const int divot = ((*REG.VI_STATUS) >> 4) & 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user