diff options
Diffstat (limited to 'src/mame/drivers/tank8.cpp')
-rw-r--r-- | src/mame/drivers/tank8.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/tank8.cpp b/src/mame/drivers/tank8.cpp index f9133c88f36..f49ed135a26 100644 --- a/src/mame/drivers/tank8.cpp +++ b/src/mame/drivers/tank8.cpp @@ -8,6 +8,7 @@ Atari Tank 8 driver #include "emu.h" #include "includes/tank8.h" + #include "cpu/m6800/m6800.h" #include "sound/discrete.h" #include "speaker.h" @@ -343,12 +344,10 @@ MACHINE_CONFIG_START(tank8_state::tank8) MCFG_SCREEN_VISIBLE_AREA(16, 495, 0, 463) MCFG_SCREEN_UPDATE_DRIVER(tank8_state, screen_update) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, tank8_state, screen_vblank)) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_tank8) - MCFG_PALETTE_ADD("palette", 20) - MCFG_PALETTE_INDIRECT_ENTRIES(10) - MCFG_PALETTE_INIT_OWNER(tank8_state, tank8) + MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_tank8) + PALETTE(config, m_palette, FUNC(tank8_state::tank8_palette), 20, 10); /* sound hardware */ SPEAKER(config, "mono").front_center(); |