summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Pierpaolo Prazzoli <pierpaol@mamedev.org>2009-03-08 14:35:13 +0000
committer Pierpaolo Prazzoli <pierpaol@mamedev.org>2009-03-08 14:35:13 +0000
commitf198859ac08e6319fd40dff6f325b1527919af24 (patch)
treec3b10fc2a1daadaaecc720c8ce779a7ccf211d9d
parent34815b527b71a6b77b145f7d00f826fa4bd98ccc (diff)
00268: captaven: In attract mode, the small pictures of the heroes appear before they should. [Pierpaolo Prazzoli]
-rw-r--r--src/mame/video/deco32.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/video/deco32.c b/src/mame/video/deco32.c
index 59cddccc973..5033e61aeab 100644
--- a/src/mame/video/deco32.c
+++ b/src/mame/video/deco32.c
@@ -225,9 +225,9 @@ static void captaven_draw_sprites(running_machine* machine, bitmap_t *bitmap, co
continue; //fix!!!!!
if (spritedata[offs+2]&0x20)
- prival=0;
+ prival=0xfffe; // under PF2
else
- prival=2;
+ prival=0; // above everything
sx = spritedata[offs+1];
@@ -1263,13 +1263,14 @@ VIDEO_UPDATE( captaven )
tilemap_draw(bitmap,cliprect,pf3_tilemap,0,1);
}
- captaven_draw_sprites(screen->machine,bitmap,cliprect,buffered_spriteram32,3);
-
/* PF1 can be in 8x8 mode or 16x16 mode */
if (deco32_pf12_control[6]&0x80)
- tilemap_draw(bitmap,cliprect,pf1_tilemap,0,0);
+ tilemap_draw(bitmap,cliprect,pf1_tilemap,0,2);
else
- tilemap_draw(bitmap,cliprect,pf1a_tilemap,0,0);
+ tilemap_draw(bitmap,cliprect,pf1a_tilemap,0,2);
+
+ captaven_draw_sprites(screen->machine,bitmap,cliprect,buffered_spriteram32,3);
+
return 0;
}