diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-07 16:07:02 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-07 16:07:02 +0200 |
commit | 285fbcc52f89ff8a26730c80d33925d24c35e5bc (patch) | |
tree | a6c6045c164e3564f539d2970ce78a2c63200797 /thirdparty/msdfgen/core/contour-combiners.cpp | |
parent | 803ad983039881029656c5ef4f58bca1a4f3d366 (diff) | |
parent | 3c25dfe0e44314cfb51df34a63abda6a1cc78cc1 (diff) | |
download | redot-engine-285fbcc52f89ff8a26730c80d33925d24c35e5bc.tar.gz |
Merge pull request #77959 from akien-mga/msdfgen-1.10
msdfgen: Sync with upstream 1.10
Diffstat (limited to 'thirdparty/msdfgen/core/contour-combiners.cpp')
-rw-r--r-- | thirdparty/msdfgen/core/contour-combiners.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/thirdparty/msdfgen/core/contour-combiners.cpp b/thirdparty/msdfgen/core/contour-combiners.cpp index d0c5b46d74..31f4c5da71 100644 --- a/thirdparty/msdfgen/core/contour-combiners.cpp +++ b/thirdparty/msdfgen/core/contour-combiners.cpp @@ -1,18 +1,19 @@ #include "contour-combiners.h" +#include <cfloat> #include "arithmetics.hpp" namespace msdfgen { static void initDistance(double &distance) { - distance = SignedDistance::INFINITE.distance; + distance = -DBL_MAX; } static void initDistance(MultiDistance &distance) { - distance.r = SignedDistance::INFINITE.distance; - distance.g = SignedDistance::INFINITE.distance; - distance.b = SignedDistance::INFINITE.distance; + distance.r = -DBL_MAX; + distance.g = -DBL_MAX; + distance.b = -DBL_MAX; } static double resolveDistance(double distance) { |