diff options
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/src/sdf/ftsdfcommon.h')
-rw-r--r-- | Build/source/libs/freetype2/freetype-src/src/sdf/ftsdfcommon.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/src/sdf/ftsdfcommon.h b/Build/source/libs/freetype2/freetype-src/src/sdf/ftsdfcommon.h index 60ca9773e39..d0f623f9f32 100644 --- a/Build/source/libs/freetype2/freetype-src/src/sdf/ftsdfcommon.h +++ b/Build/source/libs/freetype2/freetype-src/src/sdf/ftsdfcommon.h @@ -4,7 +4,7 @@ * * Auxiliary data for Signed Distance Field support (specification). * - * Copyright (C) 2020-2023 by + * Copyright (C) 2020-2024 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * Written by Anuj Verma. @@ -122,8 +122,7 @@ FT_BEGIN_HEADER typedef FT_BBox FT_CBox; /* control box of a curve */ - FT_LOCAL( FT_16D16 ) - square_root( FT_16D16 val ); +#define square_root( x ) (FT_16D16)FT_SqrtFixed( (FT_UInt32)( x ) ) FT_LOCAL( FT_SDFFormat ) map_fixed_to_sdf( FT_16D16 dist, |