summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/agat7.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/agat7.cpp')
-rw-r--r--src/mame/video/agat7.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/video/agat7.cpp b/src/mame/video/agat7.cpp
index cc551d87237..bfce6c81b96 100644
--- a/src/mame/video/agat7.cpp
+++ b/src/mame/video/agat7.cpp
@@ -39,12 +39,13 @@ DEFINE_DEVICE_TYPE(AGAT7VIDEO, agat7video_device, "agat7video", "Agat-7 Video")
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(agat7video_device::device_add_mconfig)
- MCFG_SCREEN_ADD("a7screen", RASTER)
- MCFG_SCREEN_RAW_PARAMS(XTAL(10'500'000), 672, 0, 512, 312, 0, 256)
- MCFG_SCREEN_UPDATE_DRIVER(agat7video_device, screen_update)
- MCFG_SCREEN_PALETTE(DEVICE_SELF)
-MACHINE_CONFIG_END
+void agat7video_device::device_add_mconfig(machine_config &config)
+{
+ screen_device &a7screen(SCREEN(config, "a7screen", SCREEN_TYPE_RASTER));
+ a7screen.set_raw(XTAL(10'500'000), 672, 0, 512, 312, 0, 256);
+ a7screen.set_screen_update(FUNC(agat7video_device::screen_update));
+ a7screen.set_palette(DEVICE_SELF);
+}
//**************************************************************************