From 949508d652073111a67b305eb8b5f607c750d7e2 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Wed, 24 Dec 2014 16:09:04 +0600 Subject: [PATCH] Correct VI_UpdateSize() cast float to u32. --- VI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VI.cpp b/VI.cpp index be717344..34cbe06e 100644 --- a/VI.cpp +++ b/VI.cpp @@ -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;