summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pastelg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pastelg.cpp')
-rw-r--r--src/mame/drivers/pastelg.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/drivers/pastelg.cpp b/src/mame/drivers/pastelg.cpp
index 9bb5ed4c1df..84d48465236 100644
--- a/src/mame/drivers/pastelg.cpp
+++ b/src/mame/drivers/pastelg.cpp
@@ -418,8 +418,7 @@ MACHINE_CONFIG_START(pastelg_state::pastelg)
MCFG_SCREEN_UPDATE_DRIVER(pastelg_state, screen_update_pastelg)
MCFG_SCREEN_PALETTE("palette")
- MCFG_PALETTE_ADD("palette", 32)
- MCFG_PALETTE_INIT_OWNER(pastelg_state, pastelg)
+ PALETTE(config, "palette", FUNC(pastelg_state::pastelg_palette), 32);
/* sound hardware */
SPEAKER(config, "speaker").front_center();
@@ -477,8 +476,7 @@ MACHINE_CONFIG_START(pastelg_state::threeds)
MCFG_SCREEN_UPDATE_DRIVER(pastelg_state, screen_update_pastelg)
MCFG_SCREEN_PALETTE("palette")
- MCFG_PALETTE_ADD("palette", 32)
- MCFG_PALETTE_INIT_OWNER(pastelg_state, pastelg)
+ PALETTE(config, "palette", FUNC(pastelg_state::pastelg_palette), 32);
/* sound hardware */
SPEAKER(config, "speaker").front_center();