summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/travrusa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/travrusa.cpp')
-rw-r--r--src/mame/drivers/travrusa.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mame/drivers/travrusa.cpp b/src/mame/drivers/travrusa.cpp
index e1d20b131ac..2e45691afa2 100644
--- a/src/mame/drivers/travrusa.cpp
+++ b/src/mame/drivers/travrusa.cpp
@@ -321,13 +321,11 @@ MACHINE_CONFIG_START(travrusa_state::travrusa)
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(travrusa_state, screen_update_travrusa)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_travrusa)
+ MCFG_DEVICE_ADD(m_gfxdecode, GFXDECODE, m_palette, gfx_travrusa)
- MCFG_PALETTE_ADD("palette", 16*8+16*8)
- MCFG_PALETTE_INDIRECT_ENTRIES(128+16)
- MCFG_PALETTE_INIT_OWNER(travrusa_state, travrusa)
+ PALETTE(config, m_palette, FUNC(travrusa_state::travrusa_palette), 16*8+16*8, 128+16);
/* sound hardware */
//m52_sound_c_audio(config);
@@ -340,8 +338,7 @@ MACHINE_CONFIG_START(travrusa_state::shtrider)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_shtrider)
- MCFG_PALETTE_MODIFY("palette")
- MCFG_PALETTE_INIT_OWNER(travrusa_state,shtrider)
+ m_palette->set_init(FUNC(travrusa_state::shtrider_palette));
MACHINE_CONFIG_END
MACHINE_CONFIG_START(travrusa_state::shtriderb)