graphics/agg: fix build with freetype 2.13.3

This commit is contained in:
tb
2025-03-06 06:33:18 +00:00
parent 0ae17ebf8c
commit 209394f9e4
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
COMMENT= anti-grain geometry graphics library
DISTNAME= agg-2.5
REVISION= 8
REVISION= 9
SHARED_LIBS= agg 3.0 \
aggfontfreetype 3.0 \
aggplatformsdl 3.0 \
@@ -0,0 +1,14 @@
Fix build with freetype 2.13.3
Index: font_freetype/agg_font_freetype.cpp
--- font_freetype/agg_font_freetype.cpp.orig
+++ font_freetype/agg_font_freetype.cpp
@@ -186,7 +186,7 @@ namespace agg
v_control = v_start;
point = outline.points + first;
- tags = outline.tags + first;
+ tags = reinterpret_cast<char*>(outline.tags) + first;
tag = FT_CURVE_TAG(tags[0]);
// A contour cannot start with a cubic control point!