mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
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:
parent
6fb0957013
commit
f0dfc6b28c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user