summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/galaxold.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/galaxold.c')
-rw-r--r--src/mame/drivers/galaxold.c50
1 files changed, 28 insertions, 22 deletions
diff --git a/src/mame/drivers/galaxold.c b/src/mame/drivers/galaxold.c
index d64d1031539..974051b3b57 100644
--- a/src/mame/drivers/galaxold.c
+++ b/src/mame/drivers/galaxold.c
@@ -2346,13 +2346,13 @@ static MACHINE_CONFIG_START( galaxold_base, galaxold_state )
/* video hardware */
MCFG_GFXDECODE_ADD("gfxdecode", galaxian)
- MCFG_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */
+ MCFG_PALETTE_ADD("palette", 32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,galaxold)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(galaxold_state, screen_update_galaxold)
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,galaxold)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,galaxold)
/* sound hardware */
@@ -2403,9 +2403,10 @@ static MACHINE_CONFIG_DERIVED( scramblb, galaxian )
MCFG_CPU_PROGRAM_MAP(scramblb_map)
/* video hardware */
- MCFG_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
+ MCFG_DEVICE_REMOVE("palette")
+ MCFG_PALETTE_ADD("palette", 32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,scrambold)
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,scrambold)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,scrambold)
MACHINE_CONFIG_END
@@ -2417,9 +2418,10 @@ static MACHINE_CONFIG_DERIVED( scramb2, galaxian )
MCFG_CPU_PROGRAM_MAP(scramb2_map)
/* video hardware */
- MCFG_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
+ MCFG_DEVICE_REMOVE("palette")
+ MCFG_PALETTE_ADD("palette", 32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,scrambold)
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,scrambold)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,scrambold)
MACHINE_CONFIG_END
@@ -2431,9 +2433,10 @@ static MACHINE_CONFIG_DERIVED( scrambler, galaxian )
MCFG_CPU_PROGRAM_MAP(scrambler_map)
/* video hardware */
- MCFG_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
+ MCFG_DEVICE_REMOVE("palette")
+ MCFG_PALETTE_ADD("palette", 32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,scrambold)
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,scrambold)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,scrambold)
MACHINE_CONFIG_END
@@ -2445,9 +2448,10 @@ static MACHINE_CONFIG_DERIVED( guttang, galaxian )
MCFG_CPU_PROGRAM_MAP(guttang_map)
/* video hardware */
- MCFG_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
+ MCFG_DEVICE_REMOVE("palette")
+ MCFG_PALETTE_ADD("palette", 32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */
-// MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,scrambold)
+// MCFG_PALETTE_INIT_OWNER(galaxold_state,scrambold)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,mooncrst)
MACHINE_CONFIG_END
@@ -2498,8 +2502,9 @@ static MACHINE_CONFIG_DERIVED( rockclim, galaxian )
/* video hardware */
MCFG_VIDEO_START_OVERRIDE(galaxold_state,rockclim)
- MCFG_PALETTE_LENGTH(64+64+2) /* 64 colors only, but still uses bullets so we need to keep the palette big */
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,rockclim)
+ MCFG_DEVICE_REMOVE("palette")
+ MCFG_PALETTE_ADD("palette", 64+64+2) /* 64 colors only, but still uses bullets so we need to keep the palette big */
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_SIZE(64*8, 32*8)
@@ -2517,8 +2522,9 @@ static MACHINE_CONFIG_DERIVED( ozon1, galaxold_base )
MCFG_MACHINE_RESET_REMOVE()
/* video hardware */
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,rockclim)
- MCFG_PALETTE_LENGTH(32)
+ MCFG_DEVICE_REMOVE("palette")
+ MCFG_PALETTE_ADD("palette", 32)
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,ozon1)
MCFG_SOUND_ADD("aysnd", AY8910, PIXEL_CLOCK/4)
@@ -2541,12 +2547,12 @@ static MACHINE_CONFIG_START( drivfrcg, galaxold_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(galaxold_state, screen_update_galaxold)
+
+ MCFG_PALETTE_ADD("palette", 64)
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
- MCFG_PALETTE_LENGTH(64)
MCFG_GFXDECODE_ADD("gfxdecode", gmgalax)
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,rockclim)
-
MCFG_VIDEO_START_OVERRIDE(galaxold_state,drivfrcg)
/* sound hardware */
@@ -2611,13 +2617,13 @@ static MACHINE_CONFIG_START( racknrol, galaxold_state )
/* video hardware */
MCFG_GFXDECODE_ADD("gfxdecode", galaxian)
- MCFG_PALETTE_LENGTH(32)
-
+ MCFG_PALETTE_ADD("palette", 32)
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
+
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(galaxold_state, screen_update_galaxold)
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,rockclim)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,racknrol)
/* sound hardware */
@@ -2636,13 +2642,13 @@ static MACHINE_CONFIG_START( hexpoola, galaxold_state )
MCFG_CPU_VBLANK_INT_DRIVER("screen", galaxold_state, hunchbks_vh_interrupt)
MCFG_GFXDECODE_ADD("gfxdecode", galaxian)
- MCFG_PALETTE_LENGTH(32)
+ MCFG_PALETTE_ADD("palette", 32)
+ MCFG_PALETTE_INIT_OWNER(galaxold_state,rockclim)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(galaxold_state, screen_update_galaxold)
- MCFG_PALETTE_INIT_OVERRIDE(galaxold_state,rockclim)
MCFG_VIDEO_START_OVERRIDE(galaxold_state,racknrol)
/* sound hardware */