summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/miniboy7.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-11-19 18:32:30 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2018-11-19 18:32:30 +0100
commitf3cb45985940539bbd1f67c9257eba6957b387fd (patch)
tree7466c84008a040d04b4058bfd12ac526346402d9 /src/mame/drivers/miniboy7.cpp
parent746ee1609556a348b5c5f51648adaaac18145a93 (diff)
mc6845: first part of MCFG macros removal (nw)
Diffstat (limited to 'src/mame/drivers/miniboy7.cpp')
-rw-r--r--src/mame/drivers/miniboy7.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/drivers/miniboy7.cpp b/src/mame/drivers/miniboy7.cpp
index cbed8e82180..d3a1cd522b6 100644
--- a/src/mame/drivers/miniboy7.cpp
+++ b/src/mame/drivers/miniboy7.cpp
@@ -539,11 +539,12 @@ MACHINE_CONFIG_START(miniboy7_state::miniboy7)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(miniboy7_state, miniboy7)
- MCFG_MC6845_ADD("crtc", MC6845, "screen", MASTER_CLOCK / 12) /* guess */
- MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8)
- MCFG_MC6845_UPDATE_ROW_CB(miniboy7_state, crtc_update_row)
- MCFG_MC6845_OUT_VSYNC_CB(WRITELINE("pia0", pia6821_device, ca1_w))
+ mc6845_device &crtc(MC6845(config, "crtc", MASTER_CLOCK / 12)); /* guess */
+ crtc.set_screen("screen");
+ crtc.set_show_border_area(false);
+ crtc.set_char_width(8);
+ crtc.set_update_row_callback(FUNC(miniboy7_state::crtc_update_row), this);
+ crtc.out_vsync_callback().set("pia0", FUNC(pia6821_device::ca1_w));
/* sound hardware */
SPEAKER(config, "mono").front_center();