diff options
Diffstat (limited to 'src/mame/drivers/deco32.c')
-rw-r--r-- | src/mame/drivers/deco32.c | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/src/mame/drivers/deco32.c b/src/mame/drivers/deco32.c index 724fb58effb..9c52c4c3af1 100644 --- a/src/mame/drivers/deco32.c +++ b/src/mame/drivers/deco32.c @@ -1753,18 +1753,21 @@ static MACHINE_CONFIG_START( captaven, deco32_state ) MCFG_SCREEN_VBLANK_DRIVER(deco32_state, screen_eof_captaven) MCFG_GFXDECODE_ADD("gfxdecode", captaven) - MCFG_PALETTE_LENGTH(2048) + MCFG_PALETTE_ADD("palette", 2048) MCFG_DECO16IC_ADD("tilegen1", captaven_deco16ic_tilegen1_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DECO16IC_ADD("tilegen2", captaven_deco16ic_tilegen2_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DEVICE_ADD("spritegen", DECO_SPRITE, 0) decospr_device::set_gfx_region(*device, 3); decospr_device::set_pri_callback(*device, captaven_pri_callback); MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") + MCFG_DECO_SPRITE_PALETTE("palette") MCFG_DECO146_ADD("ioprot") MCFG_DECO146_SET_SOUNDLATCH_CALLBACK(deco32_state, deco32_sound_cb) @@ -1825,17 +1828,20 @@ static MACHINE_CONFIG_START( fghthist, deco32_state ) /* DE-0380-2 PCB */ MCFG_SCREEN_UPDATE_DRIVER(deco32_state, screen_update_fghthist) MCFG_GFXDECODE_ADD("gfxdecode", fghthist) - MCFG_PALETTE_LENGTH(2048) + MCFG_PALETTE_ADD("palette", 2048) MCFG_DECO16IC_ADD("tilegen1", fghthist_deco16ic_tilegen1_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DECO16IC_ADD("tilegen2", fghthist_deco16ic_tilegen2_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DEVICE_ADD("spritegen", DECO_SPRITE, 0) decospr_device::set_gfx_region(*device, 3); MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") + MCFG_DECO_SPRITE_PALETTE("palette") MCFG_DECO146_ADD("ioprot") MCFG_DECO146_SET_PORTA_CALLBACK( deco32_state, port_a_fghthist ) @@ -1884,17 +1890,20 @@ static MACHINE_CONFIG_START( fghthsta, deco32_state ) /* DE-0395-1 PCB */ MCFG_SCREEN_UPDATE_DRIVER(deco32_state, screen_update_fghthist) MCFG_GFXDECODE_ADD("gfxdecode", fghthist) - MCFG_PALETTE_LENGTH(2048) + MCFG_PALETTE_ADD("palette", 2048) MCFG_DECO16IC_ADD("tilegen1", fghthist_deco16ic_tilegen1_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DECO16IC_ADD("tilegen2", fghthist_deco16ic_tilegen2_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DEVICE_ADD("spritegen", DECO_SPRITE, 0) decospr_device::set_gfx_region(*device, 3); MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") + MCFG_DECO_SPRITE_PALETTE("palette") MCFG_DECO146_ADD("ioprot") MCFG_DECO146_SET_PORTA_CALLBACK( deco32_state, port_a_fghthist ) @@ -2009,12 +2018,14 @@ static MACHINE_CONFIG_START( dragngun, dragngun_state ) MCFG_DECO16IC_ADD("tilegen1", dragngun_deco16ic_tilegen1_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DECO16IC_ADD("tilegen2", dragngun_deco16ic_tilegen2_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_GFXDECODE_ADD("gfxdecode", dragngun) - MCFG_PALETTE_LENGTH(2048) + MCFG_PALETTE_ADD("palette", 2048) MCFG_VIDEO_START_OVERRIDE(dragngun_state,dragngun) @@ -2094,12 +2105,14 @@ static MACHINE_CONFIG_START( lockload, dragngun_state ) MCFG_DECO16IC_ADD("tilegen1", lockload_deco16ic_tilegen1_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DECO16IC_ADD("tilegen2", lockload_deco16ic_tilegen2_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_GFXDECODE_ADD("gfxdecode", dragngun) - MCFG_PALETTE_LENGTH(2048) + MCFG_PALETTE_ADD("palette", 2048) MCFG_VIDEO_START_OVERRIDE(dragngun_state,lockload) @@ -2182,20 +2195,24 @@ static MACHINE_CONFIG_START( tattass, deco32_state ) MCFG_DECO16IC_ADD("tilegen1", tattass_deco16ic_tilegen1_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DECO16IC_ADD("tilegen2", tattass_deco16ic_tilegen2_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DEVICE_ADD("spritegen1", DECO_SPRITE, 0) decospr_device::set_gfx_region(*device, 3); MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") + MCFG_DECO_SPRITE_PALETTE("palette") MCFG_DEVICE_ADD("spritegen2", DECO_SPRITE, 0) decospr_device::set_gfx_region(*device, 4); MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") + MCFG_DECO_SPRITE_PALETTE("palette") MCFG_GFXDECODE_ADD("gfxdecode", tattass) - MCFG_PALETTE_LENGTH(2048) + MCFG_PALETTE_ADD("palette", 2048) MCFG_DECO104_ADD("ioprot104") MCFG_DECO146_SET_PORTB_CALLBACK( deco32_state, port_b_tattass ) @@ -2231,20 +2248,24 @@ static MACHINE_CONFIG_START( nslasher, deco32_state ) MCFG_DECO16IC_ADD("tilegen1", tattass_deco16ic_tilegen1_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DECO16IC_ADD("tilegen2", tattass_deco16ic_tilegen2_intf) MCFG_DECO16IC_GFXDECODE("gfxdecode") + MCFG_DECO16IC_PALETTE("palette") MCFG_DEVICE_ADD("spritegen1", DECO_SPRITE, 0) decospr_device::set_gfx_region(*device, 3); MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") + MCFG_DECO_SPRITE_PALETTE("palette") MCFG_DEVICE_ADD("spritegen2", DECO_SPRITE, 0) decospr_device::set_gfx_region(*device, 4); MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") + MCFG_DECO_SPRITE_PALETTE("palette") MCFG_GFXDECODE_ADD("gfxdecode", nslasher) - MCFG_PALETTE_LENGTH(2048) + MCFG_PALETTE_ADD("palette", 2048) MCFG_VIDEO_START_OVERRIDE(deco32_state,nslasher) |