mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
graphics/ftgl: Fix build with freetype2 2.13.3
PR: 281320
This commit is contained in:
parent
bd21b799f5
commit
d05315b279
4 changed files with 34 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
PORTNAME= ftgl
|
PORTNAME= ftgl
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
DISTVERSION= 2.4.0
|
DISTVERSION= 2.4.0
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
|
|
||||||
|
|
11
graphics/ftgl/files/patch-src_FTContour.cpp
Normal file
11
graphics/ftgl/files/patch-src_FTContour.cpp
Normal 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());
|
11
graphics/ftgl/files/patch-src_FTContour.h
Normal file
11
graphics/ftgl/files/patch-src_FTContour.h
Normal 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
|
11
graphics/ftgl/files/patch-src_FTVectoriser.cpp
Normal file
11
graphics/ftgl/files/patch-src_FTVectoriser.cpp
Normal 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;
|
Loading…
Add table
Reference in a new issue