mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
graphics/agg: fix build with freetype 2.13.3
This commit is contained in:
@@ -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!
|
||||
Reference in New Issue
Block a user