diff options
Diffstat (limited to 'experimental/skottie')
-rw-r--r-- | experimental/skottie/Skottie.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/skottie/Skottie.cpp b/experimental/skottie/Skottie.cpp index 381c9be422..03429e7228 100644 --- a/experimental/skottie/Skottie.cpp +++ b/experimental/skottie/Skottie.cpp @@ -770,7 +770,7 @@ sk_sp<sksg::RenderNode> AttachCompLayer(const json::ValueRef& jlayer, AttachCont stretch_time = jlayer["sr"].toDefault(1.0f); *time_bias = -start_time; - *time_scale = 1 / stretch_time; + *time_scale = sk_ieee_float_divide(1, stretch_time); if (SkScalarIsNaN(*time_scale)) { *time_scale = 1; } |