summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/kc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/kc.cpp')
-rw-r--r--src/mame/drivers/kc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/drivers/kc.cpp b/src/mame/drivers/kc.cpp
index 77e47af8938..7fbf8fed1ec 100644
--- a/src/mame/drivers/kc.cpp
+++ b/src/mame/drivers/kc.cpp
@@ -127,8 +127,7 @@ MACHINE_CONFIG_START(kc_state::kc85_3)
MCFG_SCREEN_PALETTE("palette")
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", kc_state, kc_scanline, "screen", 0, 1)
- MCFG_PALETTE_ADD("palette", KC85_PALETTE_SIZE)
- MCFG_PALETTE_INIT_OWNER(kc_state, kc85 )
+ PALETTE(config, "palette", FUNC(kc_state::kc85_palette), KC85_PALETTE_SIZE);
kc_keyboard_device &keyboard(KC_KEYBOARD(config, "keyboard", XTAL(4'000'000)));
keyboard.out_wr_callback().set(FUNC(kc_state::keyboard_cb));
@@ -208,8 +207,7 @@ MACHINE_CONFIG_START(kc85_4_state::kc85_4)
MCFG_SCREEN_PALETTE("palette")
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", kc85_4_state, kc_scanline, "screen", 0, 1)
- MCFG_PALETTE_ADD("palette", KC85_PALETTE_SIZE)
- MCFG_PALETTE_INIT_OWNER(kc85_4_state, kc85 )
+ PALETTE(config, "palette", FUNC(kc85_4_state::kc85_palette), KC85_PALETTE_SIZE);
kc_keyboard_device &keyboard(KC_KEYBOARD(config, "keyboard", XTAL(4'000'000)));
keyboard.out_wr_callback().set(FUNC(kc_state::keyboard_cb));