summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wiz.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/wiz.cpp')
-rw-r--r--src/mame/drivers/wiz.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/wiz.cpp b/src/mame/drivers/wiz.cpp
index 246c04d8f97..c5f5df16ded 100644
--- a/src/mame/drivers/wiz.cpp
+++ b/src/mame/drivers/wiz.cpp
@@ -808,11 +808,10 @@ MACHINE_CONFIG_START(wiz_state::kungfut)
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(wiz_state, screen_update_kungfut)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_stinger)
- MCFG_PALETTE_ADD("palette", 256)
- MCFG_PALETTE_INIT_OWNER(wiz_state, wiz)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_stinger);
+ PALETTE(config, m_palette, FUNC(wiz_state::wiz_palette), 256);
/* sound hardware */
SPEAKER(config, "mono").front_center();