mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[WIN32K]
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user