summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/shaolins.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/shaolins.cpp')
-rw-r--r--src/mame/drivers/shaolins.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mame/drivers/shaolins.cpp b/src/mame/drivers/shaolins.cpp
index a7852f669cb..a5ef43474c1 100644
--- a/src/mame/drivers/shaolins.cpp
+++ b/src/mame/drivers/shaolins.cpp
@@ -208,12 +208,10 @@ MACHINE_CONFIG_START(shaolins_state::shaolins)
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(shaolins_state, screen_update)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_shaolins)
- MCFG_PALETTE_ADD("palette", 16*8*16+16*8*16)
- MCFG_PALETTE_INDIRECT_ENTRIES(256)
- MCFG_PALETTE_INIT_OWNER(shaolins_state, shaolins)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_shaolins);
+ PALETTE(config, m_palette, FUNC(shaolins_state::shaolins_palette), 16*8*16+16*8*16, 256);
/* sound hardware */
SPEAKER(config, "mono").front_center();