mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
It could never reach old style hack anyway (nw)
This commit is contained in:
parent
3e1212e6eb
commit
129364210b
@ -556,16 +556,8 @@ void device_execute_interface::interface_post_reset()
|
||||
if (m_vblank_interrupt_screen != NULL)
|
||||
{
|
||||
// get the screen that will trigger the VBLANK
|
||||
|
||||
// new style - use screen tag directly
|
||||
screen_device *screen;
|
||||
if (m_vblank_interrupt_screen != NULL) {
|
||||
astring tempstring;
|
||||
screen = downcast<screen_device *>(device().machine().device(device().siblingtag(tempstring,m_vblank_interrupt_screen)));
|
||||
}
|
||||
// old style 'hack' setup - use screen #0
|
||||
else
|
||||
screen = device().machine().first_screen();
|
||||
astring tempstring;
|
||||
screen_device *screen = downcast<screen_device *>(device().machine().device(device().siblingtag(tempstring,m_vblank_interrupt_screen)));
|
||||
|
||||
assert(screen != NULL);
|
||||
screen->register_vblank_callback(vblank_state_delegate(FUNC(device_execute_interface::on_vblank), this));
|
||||
|
Loading…
Reference in New Issue
Block a user