ABI changes to suit ReFuel.FreeType (once more).

This commit is contained in:
H. Utku Maden 2024-06-21 12:20:25 +03:00
parent 54f85c888d
commit 358f600b6f
2 changed files with 18 additions and 18 deletions

@ -266,14 +266,14 @@ FT_BEGIN_HEADER
*/
typedef struct FT_Bitmap_
{
unsigned int rows;
unsigned int width;
int pitch;
unsigned char* buffer;
unsigned short num_grays;
unsigned char pixel_mode;
unsigned char palette_mode;
void* palette;
uint32_t rows;
uint32_t width;
int32_t pitch;
uint8_t* buffer;
uint16_t num_grays;
uint8_t pixel_mode;
uint8_t palette_mode;
void* palette;
} FT_Bitmap;

@ -109,7 +109,7 @@ FT_BEGIN_HEADER
* A typedef of unsigned char, used for simple booleans. As usual,
* values 1 and~0 represent true and false, respectively.
*/
typedef unsigned char FT_Bool;
typedef uint8_t FT_Bool;
/**************************************************************************
@ -121,7 +121,7 @@ FT_BEGIN_HEADER
* A signed 16-bit integer used to store a distance in original font
* units.
*/
typedef signed short FT_FWord; /* distance in FUnits */
typedef int16_t FT_FWord; /* distance in FUnits */
/**************************************************************************
@ -133,7 +133,7 @@ FT_BEGIN_HEADER
* An unsigned 16-bit integer used to store a distance in original font
* units.
*/
typedef unsigned short FT_UFWord; /* unsigned distance */
typedef uint16_t FT_UFWord; /* unsigned distance */
/**************************************************************************
@ -144,7 +144,7 @@ FT_BEGIN_HEADER
* @description:
* A simple typedef for the _signed_ char type.
*/
typedef signed char FT_Char;
typedef int8_t FT_Char;
/**************************************************************************
@ -155,7 +155,7 @@ FT_BEGIN_HEADER
* @description:
* A simple typedef for the _unsigned_ char type.
*/
typedef unsigned char FT_Byte;
typedef uint8_t FT_Byte;
/**************************************************************************
@ -199,7 +199,7 @@ FT_BEGIN_HEADER
* @description:
* A typedef for signed short.
*/
typedef signed short FT_Short;
typedef int16_t FT_Short;
/**************************************************************************
@ -210,7 +210,7 @@ FT_BEGIN_HEADER
* @description:
* A typedef for unsigned short.
*/
typedef unsigned short FT_UShort;
typedef uint16_t FT_UShort;
/**************************************************************************
@ -221,7 +221,7 @@ FT_BEGIN_HEADER
* @description:
* A typedef for the int type.
*/
typedef signed int FT_Int;
typedef int32_t FT_Int;
/**************************************************************************
@ -232,7 +232,7 @@ FT_BEGIN_HEADER
* @description:
* A typedef for the unsigned int type.
*/
typedef unsigned int FT_UInt;
typedef uint32_t FT_UInt;
/**************************************************************************
@ -300,7 +300,7 @@ FT_BEGIN_HEADER
* The FreeType error code type. A value of~0 is always interpreted as a
* successful operation.
*/
typedef int FT_Error;
typedef int32_t FT_Error;
/**************************************************************************