summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/b2m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/b2m.cpp')
-rw-r--r--src/mame/drivers/b2m.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/b2m.cpp b/src/mame/drivers/b2m.cpp
index bc22a8bfefd..96ba19c551d 100644
--- a/src/mame/drivers/b2m.cpp
+++ b/src/mame/drivers/b2m.cpp
@@ -202,10 +202,9 @@ MACHINE_CONFIG_START(b2m_state::b2m)
MCFG_SCREEN_SIZE(384, 256)
MCFG_SCREEN_VISIBLE_AREA(0, 384-1, 0, 256-1)
MCFG_SCREEN_UPDATE_DRIVER(b2m_state, screen_update_b2m)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_PALETTE_ADD("palette", 4)
- MCFG_PALETTE_INIT_OWNER(b2m_state, b2m)
+ PALETTE(config, m_palette, FUNC(b2m_state::b2m_palette), 4);
PIT8253(config, m_pit, 0);
m_pit->set_clk<0>(0);