From c22de119e5abbf8dd765f7029a95957f4a251399 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sun, 1 Mar 2015 20:55:06 +0600 Subject: [PATCH] Revert "Correct VI.real_height calculation in interlaced mode." This change cause crash in Top Gear Overdrive menu, because hEnd == hStart at some point. This reverts commit 61f9389656bd26b49c43394b701a3a7e31737b3c. --- VI.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/VI.cpp b/VI.cpp index e170de02..7b4fba45 100644 --- a/VI.cpp +++ b/VI.cpp @@ -55,11 +55,8 @@ void VI_UpdateSize() #else VI.real_height = vEnd > vStart ? (((vEnd - vStart) >> 1) * vScale) >> 10 : 0; if (VI.interlaced) { - if (VI.width != 0) { - const u32 heightScale = *REG.VI_WIDTH / (u32)((hEnd - hStart)*xScale + 0.5f); - if (heightScale > 1) - VI.real_height *= heightScale; - } + if (VI.width != 0) + VI.real_height *= *REG.VI_WIDTH / VI.width; } else { if (*REG.VI_WIDTH > 0) VI.width = min(VI.width, *REG.VI_WIDTH);