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
This commit is contained in:
avolkov
2005-02-22 04:17:11 +00:00
parent 6f2c7c24e8
commit df02337ba7
+1 -2
View File
@@ -822,8 +822,7 @@ CalcDisplayCoord (COORD c, COORD orgc, BYTE reduction)
static inline COORD static inline COORD
CalcDisplayCoord (COORD c, COORD orgc, SIZE reduction) CalcDisplayCoord (COORD c, COORD orgc, SIZE reduction)
{ {
/* correcting rounding error here */ return ((c - orgc) << ZOOM_SHIFT) / reduction;
return (((c - orgc) << ZOOM_SHIFT) + (reduction >> 1)) / reduction;
} }
#endif /* OLD_ZOOM */ #endif /* OLD_ZOOM */