summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/fastfred.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/fastfred.cpp')
-rw-r--r--src/mame/drivers/fastfred.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mame/drivers/fastfred.cpp b/src/mame/drivers/fastfred.cpp
index 3658ea79234..5a0cd8f3aed 100644
--- a/src/mame/drivers/fastfred.cpp
+++ b/src/mame/drivers/fastfred.cpp
@@ -660,14 +660,12 @@ MACHINE_CONFIG_START(fastfred_state::fastfred)
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(fastfred_state, screen_update_fastfred)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, fastfred_state, vblank_irq))
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_fastfred)
+ GFXDECODE(config, "gfxdecode", m_palette, gfx_fastfred);
- MCFG_PALETTE_ADD("palette", 32*8)
- MCFG_PALETTE_INDIRECT_ENTRIES(256)
- MCFG_PALETTE_INIT_OWNER(fastfred_state,fastfred)
+ PALETTE(config, m_palette, FUNC(fastfred_state::fastfred_palette), 32 * 8, 256);
MCFG_VIDEO_START_OVERRIDE(fastfred_state,fastfred)
/* sound hardware */
@@ -711,8 +709,7 @@ MACHINE_CONFIG_START(fastfred_state::imago)
MCFG_MACHINE_START_OVERRIDE(fastfred_state,imago)
/* video hardware */
- MCFG_PALETTE_MODIFY("palette")
- MCFG_PALETTE_ENTRIES(256+64+2) /* 256 for characters, 64 for the stars and 2 for the web */
+ m_palette->set_entries(256+64+2); // 256 for characters, 64 for the stars and 2 for the web
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_imago)
MCFG_VIDEO_START_OVERRIDE(fastfred_state,imago)