Round to nearest integer in FIX2LONG, used in XFORMOBJ APIs. Fixes rounding errors when doing coordinate transformation.

svn path=/trunk/; revision=65392
This commit is contained in:
Timo Kreuzer
2014-11-13 11:12:56 +00:00
parent d8b68f3d7b
commit 79965b20db
+1 -1
View File
@@ -13,7 +13,7 @@
#include <debug.h>
C_ASSERT(sizeof(FIX) == sizeof(LONG));
#define FIX2LONG(x) ((x) >> 4)
#define FIX2LONG(x) (((x) + 8) >> 4)
#define LONG2FIX(x) ((x) << 4)
#define FLOATOBJ_Equal _FLOATOBJ_Equal