From 44768e712515e62aac990736fd2276d24cf33cb7 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Fri, 24 Sep 2021 12:11:47 +0900 Subject: [PATCH] sw_engine: fix compiler a warning handle them double type values. --- src/lib/sw_engine/tvgSwFill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sw_engine/tvgSwFill.cpp b/src/lib/sw_engine/tvgSwFill.cpp index 747a0597..4eb61a32 100644 --- a/src/lib/sw_engine/tvgSwFill.cpp +++ b/src/lib/sw_engine/tvgSwFill.cpp @@ -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; }