diff options
Diffstat (limited to 'src/mame/drivers/fantland.cpp')
-rw-r--r-- | src/mame/drivers/fantland.cpp | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/src/mame/drivers/fantland.cpp b/src/mame/drivers/fantland.cpp index 09b0984416e..243ac5ca0ab 100644 --- a/src/mame/drivers/fantland.cpp +++ b/src/mame/drivers/fantland.cpp @@ -829,12 +829,11 @@ MACHINE_CONFIG_START(fantland_state::fantland) MCFG_SCREEN_SIZE(352,256) MCFG_SCREEN_VISIBLE_AREA(0, 352-1, 0, 256-1) MCFG_SCREEN_UPDATE_DRIVER(fantland_state, screen_update) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, fantland_state, vblank_irq)) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_fantland) - MCFG_PALETTE_ADD("palette", 256) - MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_fantland); + PALETTE(config, m_palette).set_format(palette_device::xRGB_555, 256); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -872,12 +871,11 @@ MACHINE_CONFIG_START(fantland_state::galaxygn) MCFG_SCREEN_SIZE(352,256) MCFG_SCREEN_VISIBLE_AREA(0, 352-1, 0, 256-1) MCFG_SCREEN_UPDATE_DRIVER(fantland_state, screen_update) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, fantland_state, vblank_irq)) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_fantland) - MCFG_PALETTE_ADD("palette", 256) - MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_fantland); + PALETTE(config, m_palette).set_format(palette_device::xRGB_555, 256); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -949,12 +947,11 @@ MACHINE_CONFIG_START(borntofi_state::borntofi) MCFG_SCREEN_SIZE(352,256) MCFG_SCREEN_VISIBLE_AREA(0, 352-1, 0, 256-1) MCFG_SCREEN_UPDATE_DRIVER(borntofi_state, screen_update) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, borntofi_state, vblank_irq)) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_fantland) - MCFG_PALETTE_ADD("palette", 256) - MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_fantland); + PALETTE(config, m_palette).set_format(palette_device::xRGB_555, 256); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -1001,12 +998,11 @@ MACHINE_CONFIG_START(fantland_state::wheelrun) MCFG_SCREEN_SIZE(256,224) MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 0, 224-1) MCFG_SCREEN_UPDATE_DRIVER(fantland_state, screen_update) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, fantland_state, vblank_irq)) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_fantland) - MCFG_PALETTE_ADD("palette", 256) - MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_fantland); + PALETTE(config, m_palette).set_format(palette_device::xRGB_555, 256); /* sound hardware */ SPEAKER(config, "speaker").front_center(); |