summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/brkthru.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/brkthru.cpp')
-rw-r--r--src/mame/drivers/brkthru.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mame/drivers/brkthru.cpp b/src/mame/drivers/brkthru.cpp
index 80788e9a28c..c4b1a3e7868 100644
--- a/src/mame/drivers/brkthru.cpp
+++ b/src/mame/drivers/brkthru.cpp
@@ -468,16 +468,15 @@ MACHINE_CONFIG_START(brkthru_state::brkthru)
/* video hardware */
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_brkthru)
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_brkthru)
- MCFG_PALETTE_ADD("palette", 256)
- MCFG_PALETTE_INIT_OWNER(brkthru_state, brkthru)
+ PALETTE(config, m_palette, FUNC(brkthru_state::brkthru_palette), 256);
/* not sure; assuming to be the same as darwin */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(MASTER_CLOCK/2, 384, 8, 248, 272, 8, 248)
MCFG_SCREEN_UPDATE_DRIVER(brkthru_state, screen_update_brkthru)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, brkthru_state, vblank_irq))
/* sound hardware */
@@ -509,10 +508,9 @@ MACHINE_CONFIG_START(brkthru_state::darwin)
/* video hardware */
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_brkthru)
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_brkthru)
- MCFG_PALETTE_ADD("palette", 256)
- MCFG_PALETTE_INIT_OWNER(brkthru_state, brkthru)
+ PALETTE(config, m_palette, FUNC(brkthru_state::brkthru_palette), 256);
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(MASTER_CLOCK/2, 384, 8, 248, 272, 8, 248)
@@ -529,7 +527,7 @@ MACHINE_CONFIG_START(brkthru_state::darwin)
= 57.444855Hz
tuned by Shingo SUZUKI(VSyncMAME Project) 2000/10/19 */
MCFG_SCREEN_UPDATE_DRIVER(brkthru_state, screen_update_brkthru)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, brkthru_state, vblank_irq))
/* sound hardware */