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:
@@ -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 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user