summaryrefslogtreecommitdiff
path: root/graphics/clanlib
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>2000-12-15 07:31:22 +0000
committermycroft <mycroft@pkgsrc.org>2000-12-15 07:31:22 +0000
commit0df22a6c5aea6cfcd3c6a1a423ec866a92e33ec1 (patch)
treed01e6e5896414441a43d447ef8b73206ee109321 /graphics/clanlib
parentdaafe24eed91c339784f010727617a7fcb6f21cd (diff)
downloadpkgsrc-0df22a6c5aea6cfcd3c6a1a423ec866a92e33ec1.tar.gz
Fix stupid endianness problem.
Diffstat (limited to 'graphics/clanlib')
-rw-r--r--graphics/clanlib/patches/patch-aj23
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/clanlib/patches/patch-aj b/graphics/clanlib/patches/patch-aj
new file mode 100644
index 00000000000..53d5955b985
--- /dev/null
+++ b/graphics/clanlib/patches/patch-aj
@@ -0,0 +1,23 @@
+$NetBSD: patch-aj,v 1.3 2000/12/15 07:31:22 mycroft Exp $
+
+--- Sources/Core/SurfaceProviders/provider_pcx.cpp.orig Sun Apr 9 12:18:02 2000
++++ Sources/Core/SurfaceProviders/provider_pcx.cpp Fri Dec 15 07:27:49 2000
+@@ -113,10 +113,14 @@
+
+ datafile->seek(4, CL_InputSource::seek_set);
+
+- short xmin = datafile->read_short16();
+- short ymin = datafile->read_short16();
+- short xmax = datafile->read_short16();
+- short ymax = datafile->read_short16();
++ short xmin = datafile->read_char8() |
++ (datafile->read_char8() << 8);
++ short ymin = datafile->read_char8() |
++ (datafile->read_char8() << 8);
++ short xmax = datafile->read_char8() |
++ (datafile->read_char8() << 8);
++ short ymax = datafile->read_char8() |
++ (datafile->read_char8() << 8);
+
+ pitch = xmax - xmin + 1;
+ height = ymax - ymin + 1;