diff options
Diffstat (limited to 'src/mame/drivers/ti74.cpp')
-rw-r--r-- | src/mame/drivers/ti74.cpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/mame/drivers/ti74.cpp b/src/mame/drivers/ti74.cpp index ed14d5ec522..99c85670ae0 100644 --- a/src/mame/drivers/ti74.cpp +++ b/src/mame/drivers/ti74.cpp @@ -530,14 +530,15 @@ MACHINE_CONFIG_START(ti74_state::ti74) NVRAM(config, "sysram.ic3", nvram_device::DEFAULT_ALL_0); /* video hardware */ - MCFG_SCREEN_ADD("screen", LCD) - MCFG_SCREEN_REFRESH_RATE(60) // arbitrary - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) - MCFG_SCREEN_SIZE(6*31+1, 9*1+1+1) - MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1+1) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); + screen.set_refresh_hz(60); // arbitrary + screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); + screen.set_size(6*31+1, 9*1+1+1); + screen.set_visarea(0, 6*31, 0, 9*1+1); + screen.set_screen_update("hd44780", FUNC(hd44780_device::screen_update)); + screen.set_palette("palette"); + config.set_default_layout(layout_ti74); - MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update) - MCFG_SCREEN_PALETTE("palette") PALETTE(config, "palette", FUNC(ti74_state::ti74_palette), 3); @@ -565,14 +566,15 @@ MACHINE_CONFIG_START(ti74_state::ti95) NVRAM(config, "sysram.ic3", nvram_device::DEFAULT_ALL_0); /* video hardware */ - MCFG_SCREEN_ADD("screen", LCD) - MCFG_SCREEN_REFRESH_RATE(60) // arbitrary - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) - MCFG_SCREEN_SIZE(200, 20) - MCFG_SCREEN_VISIBLE_AREA(0, 200-1, 0, 20-1) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); + screen.set_refresh_hz(60); // arbitrary + screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); + screen.set_size(200, 20); + screen.set_visarea(0, 200-1, 0, 20-1); + screen.set_screen_update("hd44780", FUNC(hd44780_device::screen_update)); + screen.set_palette("palette"); + config.set_default_layout(layout_ti95); - MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update) - MCFG_SCREEN_PALETTE("palette") PALETTE(config, "palette", FUNC(ti74_state::ti74_palette), 3); |