summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/undrfire.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/undrfire.cpp')
-rw-r--r--src/mame/drivers/undrfire.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mame/drivers/undrfire.cpp b/src/mame/drivers/undrfire.cpp
index 081d0e15eb1..3f168d90b3c 100644
--- a/src/mame/drivers/undrfire.cpp
+++ b/src/mame/drivers/undrfire.cpp
@@ -592,11 +592,10 @@ MACHINE_CONFIG_START(undrfire_state::undrfire)
MCFG_SCREEN_SIZE(40*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0, 40*8-1, 3*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(undrfire_state, screen_update_undrfire)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_undrfire)
- MCFG_PALETTE_ADD("palette", 16384)
- MCFG_PALETTE_FORMAT(XRGB)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_undrfire);
+ PALETTE(config, m_palette).set_format(palette_device::xRGB_888, 16384);
TC0100SCN(config, m_tc0100scn, 0);
m_tc0100scn->set_gfx_region(2);
@@ -655,11 +654,10 @@ MACHINE_CONFIG_START(undrfire_state::cbombers)
MCFG_SCREEN_SIZE(40*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0, 40*8-1, 3*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(undrfire_state, screen_update_cbombers)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_cbombers)
- MCFG_PALETTE_ADD("palette", 16384)
- MCFG_PALETTE_FORMAT(XRGB)
+ GFXDECODE(config, m_gfxdecode, m_palette, gfx_cbombers);
+ PALETTE(config, m_palette).set_format(palette_device::xRGB_888, 16384);
TC0100SCN(config, m_tc0100scn, 0);
m_tc0100scn->set_gfx_region(2);