1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

graphics/ftgl: Fix build with freetype2 2.13.3

PR:		281320
This commit is contained in:
Dmitry Marakasov 2024-09-17 20:54:15 +02:00 committed by Daniel Engberg
parent bd21b799f5
commit d05315b279
4 changed files with 34 additions and 1 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= ftgl
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.0
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= graphics

View File

@ -0,0 +1,11 @@
--- src/FTContour.cpp.orig 2019-02-07 21:39:58 UTC
+++ src/FTContour.cpp
@@ -174,7 +174,7 @@ void FTContour::SetParity(int parity)
}
-FTContour::FTContour(FT_Vector* contour, char* tags, unsigned int n)
+FTContour::FTContour(FT_Vector* contour, unsigned char* tags, unsigned int n)
{
FTPoint prev, cur(contour[(n - 1) % n]), next(contour[0]);
double olddir, dir = atan2((next - cur).Y(), (next - cur).X());

View File

@ -0,0 +1,11 @@
--- src/FTContour.h.orig 2019-02-07 21:39:58 UTC
+++ src/FTContour.h
@@ -52,7 +52,7 @@ class FTContour
* @param pointTags
* @param numberOfPoints
*/
- FTContour(FT_Vector* contour, char* pointTags, unsigned int numberOfPoints);
+ FTContour(FT_Vector* contour, unsigned char* pointTags, unsigned int numberOfPoints);
/**
* Destructor

View File

@ -0,0 +1,11 @@
--- src/FTVectoriser.cpp.orig 2019-02-07 21:39:58 UTC
+++ src/FTVectoriser.cpp
@@ -168,7 +168,7 @@ void FTVectoriser::ProcessContours()
for(int i = 0; i < ftContourCount; ++i)
{
FT_Vector* pointList = &outline.points[startIndex];
- char* tagList = &outline.tags[startIndex];
+ unsigned char* tagList = &outline.tags[startIndex];
endIndex = outline.contours[i];
contourLength = (endIndex - startIndex) + 1;