summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/divebomb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/divebomb.cpp')
-rw-r--r--src/mame/drivers/divebomb.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/divebomb.cpp b/src/mame/drivers/divebomb.cpp
index 340571645eb..284199f4f5c 100644
--- a/src/mame/drivers/divebomb.cpp
+++ b/src/mame/drivers/divebomb.cpp
@@ -437,16 +437,16 @@ MACHINE_CONFIG_START(divebomb_state::divebomb)
MCFG_VIDEO_START_OVERRIDE(divebomb_state, divebomb)
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_REFRESH_RATE(60)
- MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
- MCFG_SCREEN_SIZE(256, 256)
- MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1-32)
- MCFG_SCREEN_UPDATE_DRIVER(divebomb_state, screen_update_divebomb)
- MCFG_SCREEN_PALETTE("palette")
- MCFG_SCREEN_VBLANK_CALLBACK(INPUTLINE("fgcpu", INPUT_LINE_NMI))
- MCFG_DEVCB_CHAIN_OUTPUT(INPUTLINE("spritecpu", INPUT_LINE_NMI))
- MCFG_DEVCB_CHAIN_OUTPUT(INPUTLINE("rozcpu", INPUT_LINE_NMI))
+ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
+ screen.set_refresh_hz(60);
+ screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
+ screen.set_size(256, 256);
+ screen.set_visarea(0, 256-1, 0, 256-1-32);
+ screen.set_screen_update(FUNC(divebomb_state::screen_update_divebomb));
+ screen.set_palette("palette");
+ screen.screen_vblank().set_inputline(m_fgcpu, INPUT_LINE_NMI);
+ screen.screen_vblank().append_inputline(m_spritecpu, INPUT_LINE_NMI);
+ screen.screen_vblank().append_inputline(m_rozcpu, INPUT_LINE_NMI);
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_divebomb)
MCFG_PALETTE_ADD("palette", 0x400+0x400+0x400+0x100)