diff options
Diffstat (limited to 'src/mame/drivers/dambustr.cpp')
-rw-r--r-- | src/mame/drivers/dambustr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/dambustr.cpp b/src/mame/drivers/dambustr.cpp index 72a5bdf3566..a2b7a52340a 100644 --- a/src/mame/drivers/dambustr.cpp +++ b/src/mame/drivers/dambustr.cpp @@ -63,8 +63,9 @@ class dambustr_state : public galaxold_state { public: dambustr_state(const machine_config &mconfig, device_type type, const char *tag) - : galaxold_state(mconfig, type, tag), - m_custom(*this, "cust") { } + : galaxold_state(mconfig, type, tag) + , m_custom(*this, "cust") + { } void dambustr(machine_config &config); @@ -280,12 +281,11 @@ MACHINE_CONFIG_START(dambustr_state::dambustr) 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(dambustr_state, screen_update_dambustr) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_dambustr) - MCFG_PALETTE_ADD("palette", 32+2+64+8) /* 32 for the characters, 2 for the bullets, 64 for the stars, 8 for the background */ + GFXDECODE(config, m_gfxdecode, m_palette, gfx_dambustr); + PALETTE(config, m_palette, FUNC(dambustr_state::dambustr_palette), 32+2+64+8); // 32 for the characters, 2 for the bullets, 64 for the stars, 8 for the background - MCFG_PALETTE_INIT_OWNER(dambustr_state,dambustr) MCFG_VIDEO_START_OVERRIDE(dambustr_state,dambustr) /* sound hardware */ |