summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranuj <95867901+anuj99@users.noreply.github.com>2023-01-04 19:15:38 +0530
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-02-07 23:03:23 +0000
commit515bdfef7e5e46f8a32d908ea49c28b0a867c263 (patch)
tree052cfe8b2e4bcaf205f0c515b3d5abdad3be86a5
parentd3582e3f8db29a09234a00d44c433bceaf5a437b (diff)
downloadfreetype2-515bdfef7e5e46f8a32d908ea49c28b0a867c263.tar.gz
[sdf] Use 32-bit integers internally.
* src/sdf/ftsdfcommon.h (FT_16D16, FT_26D6): Use 32-bit integers instead of `FT_Fixed` for internal data types. `FT_Fixed` i.e. `signed long` is 64-bit on some architectures.
-rw-r--r--src/sdf/ftsdfcommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sdf/ftsdfcommon.h b/src/sdf/ftsdfcommon.h
index 3b866a1ef..60ca9773e 100644
--- a/src/sdf/ftsdfcommon.h
+++ b/src/sdf/ftsdfcommon.h
@@ -115,8 +115,8 @@ FT_BEGIN_HEADER
typedef FT_Vector FT_26D6_Vec; /* with 26.6 fixed-point components */
typedef FT_Vector FT_16D16_Vec; /* with 16.16 fixed-point components */
- typedef FT_Fixed FT_16D16; /* 16.16 fixed-point representation */
- typedef FT_Fixed FT_26D6; /* 26.6 fixed-point representation */
+ typedef FT_Int32 FT_16D16; /* 16.16 fixed-point representation */
+ typedef FT_Int32 FT_26D6; /* 26.6 fixed-point representation */
typedef FT_Byte FT_SDFFormat; /* format to represent SDF data */
typedef FT_BBox FT_CBox; /* control box of a curve */