mc6845 - if screen is not found by tag, try again searching same tag from owner, used by graphics cards in MESS (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-03-05 13:22:37 +00:00
parent 6fb0957013
commit f0dfc6b28c

View File

@ -883,6 +883,10 @@ static void common_start(device_t *device, int device_type)
if ( mc6845->intf->screen_tag != NULL )
{
mc6845->screen = downcast<screen_device *>(device->machine->device(mc6845->intf->screen_tag));
if (mc6845->screen == NULL) {
astring tempstring;
mc6845->screen = downcast<screen_device *>(device->machine->device(device->owner()->subtag(tempstring,mc6845->intf->screen_tag)));
}
assert(mc6845->screen != NULL);
}
else