From 0501ea5e896753e70bd7c23effce10d165c4a52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Mon, 21 Mar 2011 23:53:04 +0000 Subject: [PATCH] fixed zigzag sprites: http://www.mametesters.org/view.php?id=1665 --- src/mame/drivers/galaxian.c | 5 +++++ src/mame/includes/galaxian.h | 1 + src/mame/video/galaxian.c | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/src/mame/drivers/galaxian.c b/src/mame/drivers/galaxian.c index 21acf11fdf4..d6a7b1554d4 100644 --- a/src/mame/drivers/galaxian.c +++ b/src/mame/drivers/galaxian.c @@ -2122,6 +2122,10 @@ static MACHINE_CONFIG_DERIVED( zigzag, galaxian_base ) MCFG_CPU_MODIFY("maincpu") MCFG_CPU_PROGRAM_MAP(galaxian_map_base) /* no discrete sound */ + /* video hardware */ + MCFG_SCREEN_MODIFY("screen") + MCFG_SCREEN_UPDATE(zigzag) + /* sound hardware */ MCFG_SOUND_ADD("aysnd", AY8910, 1789750) @@ -2886,6 +2890,7 @@ static DRIVER_INIT( zigzag ) /* video extensions */ common_init(machine, NULL, galaxian_draw_background, NULL, NULL); + galaxian_draw_bullet_ptr = NULL; /* make ROMs 2 & 3 swappable */ memory_install_read_bank(space, 0x2000, 0x2fff, 0, 0, "bank1"); diff --git a/src/mame/includes/galaxian.h b/src/mame/includes/galaxian.h index 1fbf0d2f2f9..49935c75e7d 100644 --- a/src/mame/includes/galaxian.h +++ b/src/mame/includes/galaxian.h @@ -45,6 +45,7 @@ PALETTE_INIT( moonwar ); VIDEO_START( galaxian ); SCREEN_UPDATE( galaxian ); +SCREEN_UPDATE( zigzag ); WRITE8_HANDLER( galaxian_videoram_w ); WRITE8_HANDLER( galaxian_objram_w ); diff --git a/src/mame/video/galaxian.c b/src/mame/video/galaxian.c index bf00805a688..be19ad68e97 100644 --- a/src/mame/video/galaxian.c +++ b/src/mame/video/galaxian.c @@ -516,6 +516,17 @@ SCREEN_UPDATE( galaxian ) } +SCREEN_UPDATE( zigzag ) +{ + SCREEN_UPDATE_CALL(galaxian); + + /* zigzag has an extra sprite generator instead of bullets */ + sprites_draw(screen->machine, bitmap, cliprect, &screen->machine->generic.spriteram.u8[0x60]); + + return 0; +} + + /************************************* *