summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gd/Makefile3
-rw-r--r--graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.cpp20
-rw-r--r--graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.h11
3 files changed, 33 insertions, 1 deletions
diff --git a/graphics/gd/Makefile b/graphics/gd/Makefile
index fb199ac82c64..dea173561adf 100644
--- a/graphics/gd/Makefile
+++ b/graphics/gd/Makefile
@@ -14,7 +14,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS_INSTALL= libgd ??-libgd
-USES= cpe tar:xz pkgconfig pathfix libtool:keepla autoreconf shebangfix
+USES= autoreconf cpe gettext-tools libtool:keepla pathfix pkgconfig \
+ shebangfix tar:xz
SHEBANG_FILES= ${WRKSRC}/src/bdftogd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-gd-formats
diff --git a/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.cpp b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.cpp
new file mode 100644
index 000000000000..182410f1283f
--- /dev/null
+++ b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.cpp
@@ -0,0 +1,20 @@
+--- src/tracer/processing/PathScanner.cpp.orig 2025-12-14 12:31:31 UTC
++++ src/tracer/processing/PathScanner.cpp
+@@ -16,7 +16,7 @@ const bool PathScanner::kPathScanHolePathLookup[16] =
+ false, false, false, true, false, true, true, false
+ };
+
+-const char PathScanner::kPathScanCombinedLookup[16][4][4] = {
++const signed char PathScanner::kPathScanCombinedLookup[16][4][4] = {
+ {{-1,-1,-1,-1}, {-1,-1,-1,-1}, {-1,-1,-1,-1}, {-1,-1,-1,-1}}, // 0
+ {{ 0, 1, 0,-1}, {-1,-1,-1,-1}, {-1,-1,-1,-1}, { 0, 2,-1, 0}}, // 1
+ {{-1,-1,-1,-1}, {-1,-1,-1,-1}, { 0, 1, 0,-1}, { 0, 0, 1, 0}}, // 2
+@@ -137,7 +137,7 @@ PathScanner::ScanPaths(std::vector<std::vector<int> >&
+ break;
+ }
+
+- const char* lookupRow = kPathScanCombinedLookup[code][direction];
++ const signed char* lookupRow = kPathScanCombinedLookup[code][direction];
+
+ if (lookupRow[1] < 0) {
+ pathFinished = true;
diff --git a/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.h b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.h
new file mode 100644
index 000000000000..7b64f82e24ad
--- /dev/null
+++ b/graphics/hvif-tools/files/patch-src_tracer_processing_PathScanner.h
@@ -0,0 +1,11 @@
+--- src/tracer/processing/PathScanner.h.orig 2025-12-14 12:31:58 UTC
++++ src/tracer/processing/PathScanner.h
+@@ -35,7 +35,7 @@ class PathScanner { (private)
+ private:
+ static const unsigned char kPathScanDirectionLookup[16];
+ static const bool kPathScanHolePathLookup[16];
+- static const char kPathScanCombinedLookup[16][4][4];
++ static const signed char kPathScanCombinedLookup[16][4][4];
+ };
+
+ #endif