freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][1153-sdf-alloc] [sdf] Use 32-bit integers inter


From: Anuj Verma (@anujv)
Subject: [Git][freetype/freetype][1153-sdf-alloc] [sdf] Use 32-bit integers internally.
Date: Tue, 07 Feb 2023 18:09:31 +0000

Anuj Verma pushed to branch 1153-sdf-alloc at FreeType / FreeType

Commits:

  • 14efed0b
    by anuj at 2023-01-04T19:15:38+05:30
    [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.
    

1 changed file:

Changes:

  • src/sdf/ftsdfcommon.h
    ... ... @@ -115,8 +115,8 @@ FT_BEGIN_HEADER
    115 115
       typedef FT_Vector FT_26D6_Vec;   /* with 26.6 fixed-point components  */
    
    116 116
       typedef FT_Vector FT_16D16_Vec;  /* with 16.16 fixed-point components */
    
    117 117
     
    
    118
    -  typedef FT_Fixed  FT_16D16;      /* 16.16 fixed-point representation  */
    
    119
    -  typedef FT_Fixed  FT_26D6;       /* 26.6 fixed-point representation   */
    
    118
    +  typedef FT_Int32  FT_16D16;      /* 16.16 fixed-point representation  */
    
    119
    +  typedef FT_Int32  FT_26D6;       /* 26.6 fixed-point representation   */
    
    120 120
       typedef FT_Byte   FT_SDFFormat;  /* format to represent SDF data      */
    
    121 121
     
    
    122 122
       typedef FT_BBox   FT_CBox;       /* control box of a curve            */
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]