aboutsummaryrefslogtreecommitdiff
path: root/emulators/mupen64-tr64
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2007-11-10 18:49:12 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2007-11-10 18:49:12 +0000
commit71543394084828f2fdc4460bcc323259e42d5faf (patch)
treecfe143c50c4983b4b883b7f96350593e420406f7 /emulators/mupen64-tr64
parent0c21c89d103c77fa4deca1e42bbb2d7b792fa034 (diff)
downloadports-71543394084828f2fdc4460bcc323259e42d5faf.tar.gz
ports-71543394084828f2fdc4460bcc323259e42d5faf.zip
Notes
Diffstat (limited to 'emulators/mupen64-tr64')
-rw-r--r--emulators/mupen64-tr64/files/patch-Makefile2
-rw-r--r--emulators/mupen64-tr64/files/patch-texture.c39
2 files changed, 40 insertions, 1 deletions
diff --git a/emulators/mupen64-tr64/files/patch-Makefile b/emulators/mupen64-tr64/files/patch-Makefile
index f72c828572da..1feb92c917cc 100644
--- a/emulators/mupen64-tr64/files/patch-Makefile
+++ b/emulators/mupen64-tr64/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig 2005-08-26 14:11:28.000000000 -0500
+--- Makefile 2005-08-26 14:11:28.000000000 -0500
+++ Makefile 2007-10-09 01:55:17.000000000 -0500
@@ -1,26 +1,26 @@
ifneq ("$(shell grep GTK2 config.h)","\#define GTK2_SUPPORT 1")
diff --git a/emulators/mupen64-tr64/files/patch-texture.c b/emulators/mupen64-tr64/files/patch-texture.c
new file mode 100644
index 000000000000..14266f666117
--- /dev/null
+++ b/emulators/mupen64-tr64/files/patch-texture.c
@@ -0,0 +1,39 @@
+--- texture.c 2007-11-07 17:32:05.000000000 -0500
++++ texture.c 2007-11-07 17:36:25.000000000 -0500
+@@ -3172,6 +3172,7 @@
+ _s32 x, y;
+ _u8 *dest = i_dst;
+ _u8 *src = i_src;
++ _u32 src_tmp;
+
+ int xc, yc;
+ int xl, yl;
+@@ -3193,6 +3194,7 @@
+ {
+ x = sx;
+ src = i_src + tstart + ((y * twidth + x) << 2);
++ src_tmp = (_u32)src;
+
+ if ((y & 1) && (swapped))
+ flip = 0x04;
+@@ -3201,13 +3203,13 @@
+
+ for(xc = 0; xc <= xl; xc++)
+ {
+- (_u32)src ^= flip; // wtf am I doing here?
+- src += 3;
+- *dest = *(_u8*)((_u32)src ^ flip); src--; dest++;
+- *dest = *(_u8*)((_u32)src ^ flip); src--; dest++;
+- *dest = *(_u8*)((_u32)src ^ flip); src--; dest++;
+- *dest = *(_u8*)((_u32)src ^ flip); dest++;
+- src += 4;
++ src_tmp ^= flip; // wtf am I doing here?
++ src_tmp += 3;
++ *dest = *(_u8*)(src_tmp ^ flip); src_tmp--; dest++;
++ *dest = *(_u8*)(src_tmp ^ flip); src_tmp--; dest++;
++ *dest = *(_u8*)(src_tmp ^ flip); src_tmp--; dest++;
++ *dest = *(_u8*)(src_tmp ^ flip); dest++;
++ src_tmp += 4;
+ //x += dx;
+ }
+ y += dy;