summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/magmax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/magmax.cpp')
-rw-r--r--src/mame/drivers/magmax.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/drivers/magmax.cpp b/src/mame/drivers/magmax.cpp
index f49e5b62df5..bce7832c872 100644
--- a/src/mame/drivers/magmax.cpp
+++ b/src/mame/drivers/magmax.cpp
@@ -347,10 +347,8 @@ MACHINE_CONFIG_START(magmax_state::magmax)
MCFG_SCREEN_UPDATE_DRIVER(magmax_state, screen_update)
MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD(m_gfxdecode, GFXDECODE, m_palette, gfx_magmax)
- MCFG_PALETTE_ADD(m_palette, 1*16 + 16*16 + 256)
- MCFG_PALETTE_INDIRECT_ENTRIES(256)
- MCFG_PALETTE_INIT_OWNER(magmax_state, magmax)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_magmax);
+ PALETTE(config, m_palette, FUNC(magmax_state::magmax_palette), 1*16 + 16*16 + 256, 256);
/* sound hardware */
SPEAKER(config, "mono").front_center();