summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/teleprinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/teleprinter.cpp')
-rw-r--r--src/mame/machine/teleprinter.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/machine/teleprinter.cpp b/src/mame/machine/teleprinter.cpp
index 6cbc53090cf..8ef1576a2c2 100644
--- a/src/mame/machine/teleprinter.cpp
+++ b/src/mame/machine/teleprinter.cpp
@@ -211,20 +211,20 @@ uint32_t teleprinter_device::tp_update(screen_device &device, bitmap_rgb32 &bitm
/***************************************************************************
VIDEO HARDWARE
***************************************************************************/
-MACHINE_CONFIG_START(teleprinter_device::device_add_mconfig)
- MCFG_SCREEN_ADD(TELEPRINTER_SCREEN_TAG, RASTER)
- MCFG_SCREEN_REFRESH_RATE(50)
- MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
- MCFG_SCREEN_SIZE(teleprinter_device::WIDTH*8, teleprinter_device::HEIGHT*8)
- MCFG_SCREEN_VISIBLE_AREA(0, teleprinter_device::WIDTH*8-1, 0, teleprinter_device::HEIGHT*8-1)
- MCFG_SCREEN_UPDATE_DEVICE(DEVICE_SELF, teleprinter_device, tp_update)
+void teleprinter_device::device_add_mconfig(machine_config &config)
+{
+ screen_device &screen(SCREEN(config, TELEPRINTER_SCREEN_TAG, SCREEN_TYPE_RASTER));
+ screen.set_refresh_hz(50);
+ screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
+ screen.set_size(teleprinter_device::WIDTH*8, teleprinter_device::HEIGHT*8);
+ screen.set_visarea(0, teleprinter_device::WIDTH*8-1, 0, teleprinter_device::HEIGHT*8-1);
+ screen.set_screen_update(FUNC(teleprinter_device::tp_update));
generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0));
keyboard.set_keyboard_callback(FUNC(generic_terminal_device::kbd_put));
SPEAKER(config, "bell").front_center();
- MCFG_DEVICE_ADD("beeper", BEEP, 2'000)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bell", 0.50)
-MACHINE_CONFIG_END
+ BEEP(config, "beeper", 2'000).add_route(ALL_OUTPUTS, "bell", 0.50);
+}
/*-------------------------------------------------