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

Fix float/int mismatch in VI_UpdateSize().

This commit is contained in:
Sergey Lipskiy 2014-10-03 13:15:00 +07:00
parent e21f455686
commit 3b97ca2d7c

6
VI.cpp
View File

@ -47,10 +47,10 @@ void VI_UpdateSize()
else
VI.height = VI.real_height*1.0126582f;
if (VI.width == 0.0f)
if (VI.width == 0)
VI.width = *REG.VI_WIDTH;
if (VI.height == 0.0f)
VI.height = 240.0f;
if (VI.height == 0)
VI.height = 240;
if (config.frameBufferEmulation.enable && (interlacedPrev != VI.interlaced || widthPrev != VI.width || heightPrev != VI.height)) {
frameBufferList().destroy();