summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-04-11 20:57:39 +0200
committerDavid Seifert <soap@gentoo.org>2019-04-11 20:58:19 +0200
commitcb0cf745e7d4eabbc169d4901811cc7cdd267f5f (patch)
tree10cedfc864649d131489478544b35ba600b8fd19 /games-arcade/performous/files
parentdev-libs/xapian-bindings: add ruby25, ruby26 (diff)
downloadgentoo-cb0cf745e7d4eabbc169d4901811cc7cdd267f5f.tar.gz
gentoo-cb0cf745e7d4eabbc169d4901811cc7cdd267f5f.tar.bz2
gentoo-cb0cf745e7d4eabbc169d4901811cc7cdd267f5f.zip
games-arcade/performous: Fix building with media-libs/jpeg
Closes: https://bugs.gentoo.org/649280 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-arcade/performous/files')
-rw-r--r--games-arcade/performous/files/performous-1.1-jpeg-9c.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/games-arcade/performous/files/performous-1.1-jpeg-9c.patch b/games-arcade/performous/files/performous-1.1-jpeg-9c.patch
new file mode 100644
index 000000000000..d878cec07f51
--- /dev/null
+++ b/games-arcade/performous/files/performous-1.1-jpeg-9c.patch
@@ -0,0 +1,11 @@
+--- a/common/image.cc
++++ b/common/image.cc
+@@ -180,7 +180,7 @@
+ }
+ jpeg_create_decompress(&cinfo);
+ jpeg_mem_src(&cinfo, data.data(), data.size());
+- if (jpeg_read_header(&cinfo, true) != JPEG_HEADER_OK) throw std::runtime_error("Cannot read header of " + filename.string());
++ if (jpeg_read_header(&cinfo, TRUE) != JPEG_HEADER_OK) throw std::runtime_error("Cannot read header of " + filename.string());
+ jpeg_start_decompress(&cinfo);
+ bitmap.resize(cinfo.output_width, cinfo.output_height);
+ unsigned stride = (bitmap.width * 3 + 3) & ~3; // Number of bytes per row (word-aligned)