summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tryout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tryout.cpp')
-rw-r--r--src/mame/drivers/tryout.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/tryout.cpp b/src/mame/drivers/tryout.cpp
index 2faa973a506..1839f9dfb1b 100644
--- a/src/mame/drivers/tryout.cpp
+++ b/src/mame/drivers/tryout.cpp
@@ -207,11 +207,10 @@ MACHINE_CONFIG_START(tryout_state::tryout)
MCFG_SCREEN_SIZE(256, 256)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(tryout_state, screen_update)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_tryout)
- MCFG_PALETTE_ADD("palette", 0x20)
- MCFG_PALETTE_INIT_OWNER(tryout_state, tryout)
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_tryout)
+ PALETTE(config, m_palette, FUNC(tryout_state::tryout_palette), 0x20);
/* sound hardware */
SPEAKER(config, "mono").front_center();