Add Floating Point revision to CanvasImpl::Construct
authorhoonik.lee <hoonik.lee@samsung.com>
Fri, 29 Mar 2013 01:35:03 +0000 (10:35 +0900)
committerhoonik.lee <hoonik.lee@samsung.com>
Fri, 29 Mar 2013 02:19:46 +0000 (11:19 +0900)
Change-Id: I8f1857094b671bb453e7ee58be211ba69d283a4a
Signed-off-by: hoonik.lee <hoonik.lee@samsung.com>
src/graphics/FGrp_ResUtil.h

index 3de7df3..60e1685 100755 (executable)
@@ -1479,14 +1479,14 @@ struct CoordinateHolderSimple
 
 inline int _FloatToIntForPos(float f)
 {
-       return static_cast<int>(floorf(f));
+       return static_cast<int>(floorf(f + 0.01f));
 }
 
 inline int _FloatToIntForSize(float f)
 {
        if (f > 0.0f)
        {
-               int i = static_cast<int>(f);
+               int i = static_cast<int>(f + 0.01f);
                return (i > 0) ? i : 1;
        }
        else