diff options
author | 2024-12-12 11:42:42 +0000 | |
---|---|---|
committer | 2024-12-12 11:42:42 +0000 | |
commit | 571831d4df1cfbad54de9892d76232ffc9a23e8f (patch) | |
tree | 529c718d817ff7fbd0359d67deda2f3846a2dfd2 /sci-libs/opencascade/files | |
parent | media-sound/alsa-utils: Stabilize 1.2.12 hppa, #939918 (diff) | |
download | gentoo-571831d4df1cfbad54de9892d76232ffc9a23e8f.tar.gz gentoo-571831d4df1cfbad54de9892d76232ffc9a23e8f.tar.bz2 gentoo-571831d4df1cfbad54de9892d76232ffc9a23e8f.zip |
sci-libs/opencascade: fix build w/ newer freetype
Closes: https://bugs.gentoo.org/939996
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/opencascade/files')
-rw-r--r-- | sci-libs/opencascade/files/opencascade-7.8.1-freetype-const.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sci-libs/opencascade/files/opencascade-7.8.1-freetype-const.patch b/sci-libs/opencascade/files/opencascade-7.8.1-freetype-const.patch new file mode 100644 index 000000000000..63ac571a407d --- /dev/null +++ b/sci-libs/opencascade/files/opencascade-7.8.1-freetype-const.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/939996 +https://github.com/Open-Cascade-SAS/OCCT/commit/7236e83dcc1e7284e66dc61e612154617ef715d6 + +From 7236e83dcc1e7284e66dc61e612154617ef715d6 Mon Sep 17 00:00:00 2001 +From: dpasukhi <dpasukhi@opencascade.com> +Date: Tue, 27 Aug 2024 11:33:29 +0100 +Subject: [PATCH] 0033808: Coding - FreeType Use unsigned point and contour + indexing in `FT_Outline` + +Changes to auto instead of specific type +--- a/src/StdPrs/StdPrs_BRepFont.cxx ++++ b/src/StdPrs/StdPrs_BRepFont.cxx +@@ -457,7 +457,7 @@ Standard_Boolean StdPrs_BRepFont::renderGlyph (const Standard_Utf32Char theChar, + for (short aContour = 0, aStartIndex = 0; aContour < anOutline->n_contours; ++aContour) + { + const FT_Vector* aPntList = &anOutline->points[aStartIndex]; +- const char* aTags = &anOutline->tags[aStartIndex]; ++ const auto* aTags = &anOutline->tags[aStartIndex]; + const short anEndIndex = anOutline->contours[aContour]; + const short aPntsNb = (anEndIndex - aStartIndex) + 1; + aStartIndex = anEndIndex + 1; |