sw_engine: fix compiler a warning
authorHermet Park <chuneon.park@samsung.com>
Fri, 24 Sep 2021 03:11:47 +0000 (12:11 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 27 Sep 2021 02:21:56 +0000 (11:21 +0900)
handle them double type values.

src/lib/sw_engine/tvgSwFill.cpp

index 747a059..4eb61a3 100644 (file)
@@ -150,7 +150,7 @@ bool _prepareRadial(SwFill* fill, const RadialGradient* radial, const Matrix* tr
         //FIXME; Scale + Rotation is not working properly
         radius *= sx;
 
-        if (fabsf(sx - sy) > FLT_EPSILON) {
+        if (abs(sx - sy) > DBL_EPSILON) {
             fill->sx = sx;
             fill->sy = sy;
         }