From 6b951400a5f6e5c378a22ded63fb06a1f76ba510 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Mon, 18 Apr 2016 09:21:44 +0200 Subject: [PATCH] Fix #3326: Match original implementation of sub_67933B --- src/interface/viewport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/interface/viewport.c b/src/interface/viewport.c index 6f7c98c65b..30f3e72831 100644 --- a/src/interface/viewport.c +++ b/src/interface/viewport.c @@ -2739,7 +2739,10 @@ static bool sub_67933B_679788_679C4A_67A117(uint8 *esi, sint16 x_start_point, si } } - if (ceil2(no_pixels, round) == 0) continue; + if (round > 1) { + // This matches the original implementation, but allows empty lines to cause false postives on zoom 0 + if (ceil2(no_pixels, round) == 0) continue; + } return true; }