sw_engine: fix compiler a warning

handle them double type values.
This commit is contained in:
Hermet Park 2021-09-24 12:11:47 +09:00
parent daa114aafa
commit 44768e7125

View 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;
}