From 3296f1026c498aa3f63a20f8d1fcb34e60df4aff Mon Sep 17 00:00:00 2001 From: "hoonik.lee" Date: Fri, 29 Mar 2013 10:35:03 +0900 Subject: [PATCH] Add Floating Point revision to CanvasImpl::Construct Change-Id: I8f1857094b671bb453e7ee58be211ba69d283a4a Signed-off-by: hoonik.lee --- src/graphics/FGrp_ResUtil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/FGrp_ResUtil.h b/src/graphics/FGrp_ResUtil.h index 3de7df3..60e1685 100755 --- a/src/graphics/FGrp_ResUtil.h +++ b/src/graphics/FGrp_ResUtil.h @@ -1479,14 +1479,14 @@ struct CoordinateHolderSimple inline int _FloatToIntForPos(float f) { - return static_cast(floorf(f)); + return static_cast(floorf(f + 0.01f)); } inline int _FloatToIntForSize(float f) { if (f > 0.0f) { - int i = static_cast(f); + int i = static_cast(f + 0.01f); return (i > 0) ? i : 1; } else -- 2.7.4