summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/suprloco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/suprloco.cpp')
-rw-r--r--src/mame/drivers/suprloco.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/suprloco.cpp b/src/mame/drivers/suprloco.cpp
index 8692c71ac66..9d0428c4996 100644
--- a/src/mame/drivers/suprloco.cpp
+++ b/src/mame/drivers/suprloco.cpp
@@ -191,9 +191,8 @@ MACHINE_CONFIG_START(suprloco_state::suprloco)
MCFG_SCREEN_UPDATE_DRIVER(suprloco_state, screen_update)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_suprloco)
- MCFG_PALETTE_ADD("palette", 512+256)
- MCFG_PALETTE_INIT_OWNER(suprloco_state, suprloco)
+ GFXDECODE(config, m_gfxdecode, "palette", gfx_suprloco);
+ PALETTE(config, "palette", FUNC(suprloco_state::suprloco_palette), 512+256);
/* sound hardware */
SPEAKER(config, "mono").front_center();