mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
sw_engine: fix compiler a warning
handle them double type values.
This commit is contained in:
parent
daa114aafa
commit
44768e7125
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ bool _prepareRadial(SwFill* fill, const RadialGradient* radial, const Matrix* tr
|
||||||
//FIXME; Scale + Rotation is not working properly
|
//FIXME; Scale + Rotation is not working properly
|
||||||
radius *= sx;
|
radius *= sx;
|
||||||
|
|
||||||
if (fabsf(sx - sy) > FLT_EPSILON) {
|
if (abs(sx - sy) > DBL_EPSILON) {
|
||||||
fill->sx = sx;
|
fill->sx = sx;
|
||||||
fill->sy = sy;
|
fill->sy = sy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue