diff options
Diffstat (limited to 'src/emu/screen.cpp')
-rw-r--r-- | src/emu/screen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/screen.cpp b/src/emu/screen.cpp index 849a353ddb2..feb21251f23 100644 --- a/src/emu/screen.cpp +++ b/src/emu/screen.cpp @@ -1368,7 +1368,7 @@ void screen_device::vblank_begin() m_vblank_end_time = m_vblank_start_time + attotime(0, m_vblank_period); // if this is the primary screen and we need to update now - if (this == machine().first_screen() && !(m_video_attributes & VIDEO_UPDATE_AFTER_VBLANK)) + if (this == screen_device_iterator(machine().root_device()).first() && !(m_video_attributes & VIDEO_UPDATE_AFTER_VBLANK)) machine().video().frame_update(); // call the screen specific callbacks @@ -1400,7 +1400,7 @@ void screen_device::vblank_end() m_screen_vblank(0); // if this is the primary screen and we need to update now - if (this == machine().first_screen() && (m_video_attributes & VIDEO_UPDATE_AFTER_VBLANK)) + if (this == screen_device_iterator(machine().root_device()).first() && (m_video_attributes & VIDEO_UPDATE_AFTER_VBLANK)) machine().video().frame_update(); // increment the frame number counter |