summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/gamate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/gamate.cpp')
-rw-r--r--src/mame/video/gamate.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mame/video/gamate.cpp b/src/mame/video/gamate.cpp
index f4a302ed321..67e0272c8aa 100644
--- a/src/mame/video/gamate.cpp
+++ b/src/mame/video/gamate.cpp
@@ -305,19 +305,18 @@ void gamate_video_device::gamate_palette(palette_device &palette) const
frame rate is 60.8093Hz.
*/
-void gamate_video_device::device_add_mconfig(machine_config &config)
-{
- screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD));
- screen.set_refresh_hz(60.8093);
- screen.set_size(160, 150);
- screen.set_visarea(0, 160-1, 0, 150-1);
- screen.set_screen_update(FUNC(gamate_video_device::screen_update));
- screen.set_palette("palette");
- screen.set_video_attributes(VIDEO_UPDATE_SCANLINE); // close approximate until we use timers to emulate exact video update
- screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
+MACHINE_CONFIG_START(gamate_video_device::device_add_mconfig)
+ MCFG_SCREEN_ADD("screen", LCD)
+ MCFG_SCREEN_REFRESH_RATE(60.8093)
+ MCFG_SCREEN_SIZE(160, 150)
+ MCFG_SCREEN_VISIBLE_AREA(0, 160-1, 0, 150-1)
+ MCFG_SCREEN_UPDATE_DRIVER(gamate_video_device, screen_update)
+ MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_SCANLINE) // close approximate until we use timers to emulate exact video update
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
PALETTE(config, "palette", FUNC(gamate_video_device::gamate_palette), 4);
-}
+MACHINE_CONFIG_END
void gamate_video_device::device_start()
{