summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/freetype/src/sfnt/ttbdf.c
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2023-08-03 11:07:36 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-08-08 07:02:39 +0000
commit0bdd01b7f7c248543c3cd44509d79011f7babd8a (patch)
tree7bafdce21f02c9e731f66710913428e59fb8983b /src/3rdparty/freetype/src/sfnt/ttbdf.c
parenta2c8524ad7dd59f31b400b5da8979138dc835fcc (diff)
Update to Freetype 2.13.1
The build fix applied to the 2.13.0 update has also been applied to this update. Pick-to: 6.6 6.5 5.15 Fixes: QTBUG-115340 Change-Id: I970b560948af3472b222690019a85a79c537b7d9 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/3rdparty/freetype/src/sfnt/ttbdf.c')
-rw-r--r--src/3rdparty/freetype/src/sfnt/ttbdf.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/3rdparty/freetype/src/sfnt/ttbdf.c b/src/3rdparty/freetype/src/sfnt/ttbdf.c
index 118f475e7f..536fa7467e 100644
--- a/src/3rdparty/freetype/src/sfnt/ttbdf.c
+++ b/src/3rdparty/freetype/src/sfnt/ttbdf.c
@@ -136,13 +136,14 @@
FT_LOCAL_DEF( FT_Error )
- tt_face_find_bdf_prop( TT_Face face,
+ tt_face_find_bdf_prop( FT_Face face, /* TT_Face */
const char* property_name,
BDF_PropertyRec *aprop )
{
- TT_BDF bdf = &face->bdf;
- FT_Size size = FT_FACE( face )->size;
- FT_Error error = FT_Err_Ok;
+ TT_Face ttface = (TT_Face)face;
+ TT_BDF bdf = &ttface->bdf;
+ FT_Size size = FT_FACE_SIZE( face );
+ FT_Error error = FT_Err_Ok;
FT_Byte* p;
FT_UInt count;
FT_Byte* strike;
@@ -153,7 +154,7 @@
if ( bdf->loaded == 0 )
{
- error = tt_face_load_bdf_props( face, FT_FACE( face )->stream );
+ error = tt_face_load_bdf_props( ttface, FT_FACE_STREAM( face ) );
if ( error )
goto Exit;
}
@@ -248,7 +249,7 @@
#else /* !TT_CONFIG_OPTION_BDF */
/* ANSI C doesn't like empty source files */
- typedef int _tt_bdf_dummy;
+ typedef int tt_bdf_dummy_;
#endif /* !TT_CONFIG_OPTION_BDF */