From 7affc721806ae04ee4f7604aef9f5b7347d6d957 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 1 Dec 2019 09:42:29 -0400 Subject: [PATCH] update types.h code and fixed bug --- base/types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/types.h b/base/types.h index c9bae00..4b88a1d 100644 --- a/base/types.h +++ b/base/types.h @@ -109,11 +109,12 @@ H_INLINE MMRectInt32 MMRectInt32Make(int32_t x, int32_t y, int32_t w, int32_t h) #define MMPointFromCGPoint(p) MMPointMake((size_t)(p).x, (size_t)(p).y) #define CGPointFromMMPointInt32(p) CGPointMake((CGFloat)(p).x, (CGFloat)(p).y) -#define MMPointInt32FromCGPoint(p) MMPointMake((int32_t)(p).x, (int32_t)(p).y) +#define MMPointInt32FromCGPoint(p) MMPointInt32Make((int32_t)(p).x, (int32_t)(p).y) #elif defined(IS_WINDOWS) #define MMPointFromPOINT(p) MMPointMake((size_t)p.x, (size_t)p.y) +#define MMPointInt32FromPOINT(p) MMPointInt32Make((int32_t)p.x, (int32_t)p.y) #endif