FreeBSD Bugzilla – Attachment 253411 Details for
Bug 281326
devel/upp: Fails to build with freetype2 2.13.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
upp.diff (text/plain), 1.35 KB, created by
lightside
on 2024-09-07 22:54:45 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
lightside
Created:
2024-09-07 22:54:45 UTC
Size:
1.35 KB
patch
obsolete
>--- Makefile >+++ Makefile >@@ -1,6 +1,6 @@ > PORTNAME= upp > DISTVERSION= 15260 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= devel x11-toolkits > MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2020.2/ > DISTNAME= ${PORTNAME}-posix-${PORTVERSION} >--- /dev/null >+++ files/patch-uppsrc_Draw_FontFc.cpp >@@ -0,0 +1,28 @@ >+# Draw: Workaround for backwards incompatibility of FT_Outline >+# https://github.com/ultimatepp/ultimatepp/commit/68139e354876013046aac0d1699d7b61ce055d53 >+ >+--- uppsrc/Draw/FontFc.cpp.orig 2020-10-16 9:28:02 UTC >++++ uppsrc/Draw/FontFc.cpp >+@@ -290,10 +290,9 @@ >+ FT_Vector v_start; >+ FT_Vector* point; >+ FT_Vector* limit; >+- char* tags; >+ int n; // index of contour in outline >+- char tag; // current point's state >+ int first = 0; // index of first point in contour >++ >+ for(n = 0; n < outline.n_contours; n++) { >+ int last = outline.contours[n]; >+ limit = outline.points + last; >+@@ -301,8 +300,8 @@ >+ v_last = outline.points[last]; >+ v_control = v_start; >+ point = outline.points + first; >+- tags = outline.tags + first; >+- tag = FT_CURVE_TAG(tags[0]); >++ const auto *tags = outline.tags + first; >++ auto tag = FT_CURVE_TAG(tags[0]); >+ if(tag == FT_CURVE_TAG_CUBIC) return false; >+ if(tag == FT_CURVE_TAG_CONIC) { >+ if(FT_CURVE_TAG(outline.tags[last]) == FT_CURVE_TAG_ON) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
lightside
:
maintainer-approval?
(m.sund)
Actions:
View
|
Diff
Attachments on
bug 281326
: 253411