diff options
author | acm <acm@FreeBSD.org> | 2007-11-11 02:49:12 +0800 |
---|---|---|
committer | acm <acm@FreeBSD.org> | 2007-11-11 02:49:12 +0800 |
commit | ed0a32fd94ae49be3b358e0b9ef7ef4bd7f2be92 (patch) | |
tree | 683fec41262b39bf60bc913a33b37dd28f832135 /emulators/mupen64-tr64 | |
parent | bd1890f911c187404032c45b42e6185e8dca2e9e (diff) | |
download | freebsd-ports-gnome-ed0a32fd94ae49be3b358e0b9ef7ef4bd7f2be92.tar.gz freebsd-ports-gnome-ed0a32fd94ae49be3b358e0b9ef7ef4bd7f2be92.tar.zst freebsd-ports-gnome-ed0a32fd94ae49be3b358e0b9ef7ef4bd7f2be92.zip |
- Add USE_DOS2UNIX
- Fix build with GCC4.x
- Clean up patch files
Approved by: portmgr (pav)
Diffstat (limited to 'emulators/mupen64-tr64')
-rw-r--r-- | emulators/mupen64-tr64/files/patch-Makefile | 2 | ||||
-rw-r--r-- | emulators/mupen64-tr64/files/patch-texture.c | 39 |
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; |