diff options
Diffstat (limited to 'src/mame/drivers/dcon.cpp')
-rw-r--r-- | src/mame/drivers/dcon.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mame/drivers/dcon.cpp b/src/mame/drivers/dcon.cpp index 5423c71d718..5c6bf9f7d66 100644 --- a/src/mame/drivers/dcon.cpp +++ b/src/mame/drivers/dcon.cpp @@ -293,15 +293,14 @@ MACHINE_CONFIG_START(dcon_state::dcon) MCFG_SCREEN_SIZE(40*8, 32*8) MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1) MCFG_SCREEN_UPDATE_DRIVER(dcon_state, screen_update_dcon) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) seibu_crtc_device &crtc(SEIBU_CRTC(config, "crtc", 0)); crtc.layer_en_callback().set(FUNC(dcon_state::layer_en_w)); crtc.layer_scroll_callback().set(FUNC(dcon_state::layer_scroll_w)); - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_dcon) - MCFG_PALETTE_ADD("palette", 2048) - MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_dcon); + PALETTE(config, m_palette).set_format(palette_device::xBGR_555, 2048); /* sound hardware */ SPEAKER(config, "mono").front_center(); @@ -339,15 +338,14 @@ MACHINE_CONFIG_START(dcon_state::sdgndmps) /* PCB number is PB91008 */ MCFG_SCREEN_SIZE(40*8, 32*8) MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 30*8-1) MCFG_SCREEN_UPDATE_DRIVER(dcon_state, screen_update_sdgndmps) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) seibu_crtc_device &crtc(SEIBU_CRTC(config, "crtc", 0)); crtc.layer_en_callback().set(FUNC(dcon_state::layer_en_w)); crtc.layer_scroll_callback().set(FUNC(dcon_state::layer_scroll_w)); - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_dcon) - MCFG_PALETTE_ADD("palette", 2048) - MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_dcon); + PALETTE(config, m_palette).set_format(palette_device::xBGR_555, 2048); /* sound hardware */ SPEAKER(config, "mono").front_center(); |