summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/redclash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/redclash.cpp')
-rw-r--r--src/mame/drivers/redclash.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mame/drivers/redclash.cpp b/src/mame/drivers/redclash.cpp
index 70433081ffc..6ce9e4ee47a 100644
--- a/src/mame/drivers/redclash.cpp
+++ b/src/mame/drivers/redclash.cpp
@@ -359,12 +359,10 @@ MACHINE_CONFIG_START(redclash_state::zerohour)
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1)
MCFG_SCREEN_UPDATE_DRIVER(redclash_state, screen_update_redclash)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, redclash_state, screen_vblank_redclash))
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_redclash)
- MCFG_PALETTE_ADD("palette", 4*8+4*16+32)
- MCFG_PALETTE_INDIRECT_ENTRIES(32+32)
- MCFG_PALETTE_INIT_OWNER(redclash_state,redclash)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_redclash);
+ PALETTE(config, m_palette, FUNC(redclash_state::redclash_palette), 4*8 + 4*16 + 32, 32 + 32);
ZEROHOUR_STARS(config, m_stars, 0);
@@ -386,12 +384,10 @@ MACHINE_CONFIG_START(redclash_state::redclash)
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 4*8, 28*8-1)
MCFG_SCREEN_UPDATE_DRIVER(redclash_state, screen_update_redclash)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, redclash_state, screen_vblank_redclash))
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_redclash)
- MCFG_PALETTE_ADD("palette", 4*8+4*16+32)
- MCFG_PALETTE_INDIRECT_ENTRIES(32+32)
- MCFG_PALETTE_INIT_OWNER(redclash_state,redclash)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_redclash);
+ PALETTE(config, m_palette, FUNC(redclash_state::redclash_palette), 4*8 + 4*16 + 32, 32 + 32);
ZEROHOUR_STARS(config, m_stars, 0);