summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author David Haywood <mamehaze@users.noreply.github.com>2013-03-18 08:37:04 +0000
committer David Haywood <mamehaze@users.noreply.github.com>2013-03-18 08:37:04 +0000
commitffb36e12445c7da1ffe803f0aa523aabf29a43c0 (patch)
tree3558fb7dbdedec647aa575e2988acce744da1c00
parentdb42b7fdc0dd439a7d116fa88fff10826c44c72b (diff)
must have been tired..
-rw-r--r--src/mame/video/deco_mlc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/video/deco_mlc.c b/src/mame/video/deco_mlc.c
index 75734b02ca2..28476b3d9c4 100644
--- a/src/mame/video/deco_mlc.c
+++ b/src/mame/video/deco_mlc.c
@@ -345,7 +345,7 @@ void deco_mlc_state::draw_sprites( const rectangle &cliprect, int scanline, UINT
if (rasterMode)
{
// use of these is a bit weird.
- // -ZZZ -xxx ---- -yyy -XXX -zzz
+ // -ZZZ -YYY ---- -xxx -yyy -zzz
// xxx = x offset?
// yyy = y offset?
@@ -367,8 +367,8 @@ void deco_mlc_state::draw_sprites( const rectangle &cliprect, int scanline, UINT
int extra_x_off = m_irq_ram[irq_base_reg+1] & 0x7ff;
extra_x_scale = (m_irq_ram[irq_base_reg+2]>>0) & 0x3ff;
- if (extra_x_off & 0x400) { extra_x_off = (-extra_x_off & 0x3ff); } else { extra_x_off = (extra_x_off & 0x3ff); }
- if (extra_y_off & 0x400) { extra_x_off = (-extra_y_off & 0x3ff); } else { extra_y_off = (extra_y_off & 0x3ff); }
+ if (extra_x_off & 0x400) { extra_x_off -= 0x800; }
+ if (extra_y_off & 0x400) { extra_y_off -= 0x800; }
x += extra_x_off;