From 65b6de3f19bd36946417dd0eadd22ab90195e5ba Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 19 Feb 2015 15:47:18 +0600 Subject: [PATCH] Correct VI.height calculation - make it even. Fixed New Tetris work with FB on. --- VI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VI.cpp b/VI.cpp index 65fafccf..cf5e3157 100644 --- a/VI.cpp +++ b/VI.cpp @@ -64,6 +64,8 @@ void VI_UpdateSize() VI.height = (u32)(VI.real_height*1.0041841f); else VI.height = (u32)(VI.real_height*1.0126582f); + if (VI.height % 2 == 1) + --VI.height; // const int fsaa = ((*REG.VI_STATUS) >> 8) & 3; // const int divot = ((*REG.VI_STATUS) >> 4) & 1;