diff --git a/src/mess/drivers/rainbow.c b/src/mess/drivers/rainbow.c index 5dc2d4e1afa..4f6fe9b35e6 100644 --- a/src/mess/drivers/rainbow.c +++ b/src/mess/drivers/rainbow.c @@ -1213,7 +1213,7 @@ static MACHINE_CONFIG_START( rainbow, rainbow_state ) MCFG_SCREEN_PALETTE("vt100_video:palette") MCFG_GFXDECODE_ADD("gfxdecode", rainbow) - MCFG_RAINBOW_VIDEO_ADD("vt100_video", video_interface) + MCFG_RAINBOW_VIDEO_ADD("vt100_video", "screen", video_interface) MCFG_FD1793_ADD("wd1793", rainbow_wd17xx_interface ) MCFG_LEGACY_FLOPPY_4_DRIVES_ADD(floppy_intf) diff --git a/src/mess/drivers/vt100.c b/src/mess/drivers/vt100.c index a9474fd91b2..a7d9b0ff595 100644 --- a/src/mess/drivers/vt100.c +++ b/src/mess/drivers/vt100.c @@ -427,7 +427,7 @@ static MACHINE_CONFIG_START( vt100, vt100_state ) MCFG_DEFAULT_LAYOUT( layout_vt100 ) - MCFG_VT100_VIDEO_ADD("vt100_video", vt100_video_interface) + MCFG_VT100_VIDEO_ADD("vt100_video", "screen", vt100_video_interface) MCFG_DEVICE_ADD("i8251", I8251, 0) MCFG_I8251_TXD_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd)) diff --git a/src/mess/video/vtvideo.h b/src/mess/video/vtvideo.h index 22f76c633a8..c69c396d5bb 100644 --- a/src/mess/video/vtvideo.h +++ b/src/mess/video/vtvideo.h @@ -101,13 +101,16 @@ extern const device_type VT100_VIDEO; extern const device_type RAINBOW_VIDEO; -#define MCFG_VT100_VIDEO_ADD(_tag, _intrf) \ +#define MCFG_VT100_VIDEO_ADD(_tag, _screen_tag, _intrf) \ MCFG_DEVICE_ADD(_tag, VT100_VIDEO, 0) \ - MCFG_DEVICE_CONFIG(_intrf) + MCFG_DEVICE_CONFIG(_intrf) \ + MCFG_VIDEO_SET_SCREEN(_screen_tag) -#define MCFG_RAINBOW_VIDEO_ADD(_tag, _intrf) \ +#define MCFG_RAINBOW_VIDEO_ADD(_tag, _screen_tag, _intrf) \ MCFG_DEVICE_ADD(_tag, RAINBOW_VIDEO, 0) \ - MCFG_DEVICE_CONFIG(_intrf) + MCFG_DEVICE_CONFIG(_intrf) \ + MCFG_VIDEO_SET_SCREEN(_screen_tag) + #endif