diff options
author | 2011-02-24 13:51:21 +0000 | |
---|---|---|
committer | 2011-02-24 13:51:21 +0000 | |
commit | 50b692dd2464a3bb6dc8408ceb2405288effab8f (patch) | |
tree | 77d38036043907ff66d9b9471c4e36995fed7aaf /src/emu/video.c | |
parent | d8cb0ac416caf49efcb7497e87806e3e9ac80f6e (diff) |
Modified video update system. [Miodrag Milanovic]
Screen update function is now per screen device
(it was before but was attached to machine driver)
MCFG_VIDEO_UPDATE -> MCFG_SCREEN_UPDATE
MCFG_VIDEO_EOF -> MCFG_SCREEN_EOF
EOF is now executed for all screens, so for all existing it
is defined just for one screen. This part will be updated in future.
Note that there are now screen_update and screen_eof virtual functions
for "modern" drivers which are called same as they did before.
All drivers are updated and in places where update function was separated per
screen I did name separate function.
This change will enable us to put screen definition fully into device.
Diffstat (limited to 'src/emu/video.c')
-rw-r--r-- | src/emu/video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/video.c b/src/emu/video.c index ae5a4e08a60..425c86020eb 100644 --- a/src/emu/video.c +++ b/src/emu/video.c @@ -272,7 +272,8 @@ void video_manager::frame_update(bool debug) else { g_profiler.start(PROFILER_VIDEO); - m_machine.driver_data<driver_device>()->video_eof(); + for (screen_device *screen = m_machine.first_screen(); screen != NULL; screen = screen->next_screen()) + screen->screen_eof(); g_profiler.stop(); } } |