summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/snes9x/snes9x-fixes2.patch
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2008-12-11 01:30:53 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2008-12-11 01:30:53 (GMT)
commit8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f (patch)
tree99edff3d756441a12087ecd5053d9ca60536beff /abs/extra-testing/snes9x/snes9x-fixes2.patch
parente649efa24662af962e6cbd7b9ece1bdd8f6a9340 (diff)
downloadlinhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.zip
linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.tar.gz
linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.tar.bz2
Deps for emulators and Miro.
Diffstat (limited to 'abs/extra-testing/snes9x/snes9x-fixes2.patch')
-rw-r--r--abs/extra-testing/snes9x/snes9x-fixes2.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/extra-testing/snes9x/snes9x-fixes2.patch b/abs/extra-testing/snes9x/snes9x-fixes2.patch
new file mode 100644
index 0000000..6007bb6
--- /dev/null
+++ b/abs/extra-testing/snes9x/snes9x-fixes2.patch
@@ -0,0 +1,29 @@
+--- snes9x-1.5-src.orig/unix/opengl.cpp 2006-06-30 13:34:57.000000000 +0000
++++ snes9x-1.5-src/unix/opengl.cpp 2006-09-01 08:48:39.000000000 +0000
+@@ -214,7 +214,7 @@
+
+ // Strip dots from the version string
+ char *ptr;
+- while (ptr = strchr (ver, '.'))
++ while ((ptr = strchr (ver, '.')))
+ memmove (ptr, ptr + 1, strlen (ptr + 1) + 1);
+
+ // Pad the string with zeros to 4 digits
+@@ -381,7 +381,7 @@
+ int i = 0;
+ for (uint32 y = 0; y < pheight; y++)
+ {
+- uint16 *ptr = (uint16 *) (GFX.Screen + (y + startl) * GFX.Pitch2) + startx;
++ uint16 *ptr = (uint16 *) (GFX.Screen + (y + startl) * GFX.Pitch) + startx;
+ for (uint32 x = 0; x < pwidth; x++)
+ {
+ int color = *ptr++;
+@@ -399,7 +399,7 @@
+ for (uint32 y = 0; y < pheight; y++)
+ {
+ memmove (basetexbuffer + sizeof (uint16) * texture_size * y,
+- (GFX.Screen + (y + startl) * GFX.Pitch2) + startx,
++ (GFX.Screen + (y + startl) * GFX.Pitch) + startx,
+ sizeof (uint16) * texture_size);
+ }
+ data = basetexbuffer;