summaryrefslogtreecommitdiff
path: root/emulators/xmame/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2003-07-19 21:02:33 +0000
committerkristerw <kristerw@pkgsrc.org>2003-07-19 21:02:33 +0000
commit8a1c5902b9fe59c56d43bfa89deef1f6c9e23263 (patch)
tree383ec553d0eec2f6a2c1655c94c78398eb39f49e /emulators/xmame/patches
parent2ee9f12341d00578c46fe1ce380144c013769770 (diff)
downloadpkgsrc-8a1c5902b9fe59c56d43bfa89deef1f6c9e23263.tar.gz
Update xmame to 0.71.1.
Changes since 0.70.1 includes: - Everything from MAME 0.71 and MESS 0.71. - The man page xmame.6 is much more up-to-date. (Andrew Burton)
Diffstat (limited to 'emulators/xmame/patches')
-rw-r--r--emulators/xmame/patches/patch-ab38
1 files changed, 38 insertions, 0 deletions
diff --git a/emulators/xmame/patches/patch-ab b/emulators/xmame/patches/patch-ab
new file mode 100644
index 00000000000..11de4d32445
--- /dev/null
+++ b/emulators/xmame/patches/patch-ab
@@ -0,0 +1,38 @@
+$NetBSD: patch-ab,v 1.19 2003/07/19 21:02:33 kristerw Exp $
+--- src/vidhrdw/gaiden.c.orig Sat Jul 19 21:01:17 2003
++++ src/vidhrdw/gaiden.c Sat Jul 19 21:03:44 2003
+@@ -378,22 +378,25 @@
+
+ if (attributes & 0x04)
+ {
++ UINT32 priority, flipx, flipy, color, sizex, sizey, number;
++ int ypos, xpos;
++
+ if (!blend_support && (attributes & 0x20) && (cpu_getcurrentframe() & 1))
+ goto skip_sprite;
+
+- UINT32 priority = (attributes >> 6) & 3;
+- UINT32 flipx = (attributes & 1);
+- UINT32 flipy = (attributes & 2);
++ priority = (attributes >> 6) & 3;
++ flipx = (attributes & 1);
++ flipy = (attributes & 2);
+
+- UINT32 color = source[2];
+- UINT32 sizex = 1 << ((color >> 0) & 3); /* 1,2,4,8 */
+- UINT32 sizey = 1 << ((color >> gaiden_sprite_sizey) & 3); /* 1,2,4,8 */
++ color = source[2];
++ sizex = 1 << ((color >> 0) & 3); /* 1,2,4,8 */
++ sizey = 1 << ((color >> gaiden_sprite_sizey) & 3); /* 1,2,4,8 */
+
+ /* raiga needs something like this */
+- UINT32 number = (source[1] & (sizex > 2 ? 0x7ff8 : 0x7ffc));
++ number = (source[1] & (sizex > 2 ? 0x7ff8 : 0x7ffc));
+
+- int ypos = source[3] & 0x01ff;
+- int xpos = source[4] & 0x01ff;
++ ypos = source[3] & 0x01ff;
++ xpos = source[4] & 0x01ff;
+
+ color = (color >> 4) & 0x0f;
+