From 3b97ca2d7c94511d186396b5775ec3e75e201dad Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Fri, 3 Oct 2014 13:15:00 +0700 Subject: [PATCH] Fix float/int mismatch in VI_UpdateSize(). --- VI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VI.cpp b/VI.cpp index 12d869e5..9941b3d4 100644 --- a/VI.cpp +++ b/VI.cpp @@ -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();