From df02337ba75e26534665ea39ed00dcba3cee1a5c Mon Sep 17 00:00:00 2001 From: avolkov Date: Tue, 22 Feb 2005 04:17:11 +0000 Subject: [PATCH] fixes zoomed-in SIS jitter introduced by previous attempt to fix rounding errors git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1556 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/process.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sc2/src/sc2code/process.c b/sc2/src/sc2code/process.c index 70ef55f1e..a5186c35e 100644 --- a/sc2/src/sc2code/process.c +++ b/sc2/src/sc2code/process.c @@ -822,8 +822,7 @@ CalcDisplayCoord (COORD c, COORD orgc, BYTE reduction) static inline COORD CalcDisplayCoord (COORD c, COORD orgc, SIZE reduction) { - /* correcting rounding error here */ - return (((c - orgc) << ZOOM_SHIFT) + (reduction >> 1)) / reduction; + return ((c - orgc) << ZOOM_SHIFT) / reduction; } #endif /* OLD_ZOOM */