summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/trucocl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/trucocl.cpp')
-rw-r--r--src/mame/drivers/trucocl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/trucocl.cpp b/src/mame/drivers/trucocl.cpp
index 61ff21d60df..8a3b0dcb8a3 100644
--- a/src/mame/drivers/trucocl.cpp
+++ b/src/mame/drivers/trucocl.cpp
@@ -198,9 +198,8 @@ MACHINE_CONFIG_START(trucocl_state::trucocl)
MCFG_SCREEN_UPDATE_DRIVER(trucocl_state, screen_update_trucocl)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_trucocl)
- MCFG_PALETTE_ADD("palette", 32)
- MCFG_PALETTE_INIT_OWNER(trucocl_state, trucocl)
+ GFXDECODE(config, m_gfxdecode, "palette", gfx_trucocl);
+ PALETTE(config, "palette", FUNC(trucocl_state::trucocl_palette), 32);
/* sound hardware */
SPEAKER(config, "speaker").front_center();