diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2011-02-24 13:51:21 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2011-02-24 13:51:21 +0000 |
commit | 50b692dd2464a3bb6dc8408ceb2405288effab8f (patch) | |
tree | 77d38036043907ff66d9b9471c4e36995fed7aaf /src/mame/video/superqix.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/mame/video/superqix.c')
-rw-r--r-- | src/mame/video/superqix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/superqix.c b/src/mame/video/superqix.c index 0cf64971d5a..55612c92841 100644 --- a/src/mame/video/superqix.c +++ b/src/mame/video/superqix.c @@ -227,7 +227,7 @@ static void superqix_draw_sprites(running_machine *machine, bitmap_t *bitmap,con } } -VIDEO_UPDATE( pbillian ) +SCREEN_UPDATE( pbillian ) { superqix_state *state = screen->machine->driver_data<superqix_state>(); tilemap_draw(bitmap, cliprect, state->bg_tilemap, 0, 0); @@ -254,7 +254,7 @@ VIDEO_UPDATE( pbillian ) return 0; } -VIDEO_UPDATE( superqix ) +SCREEN_UPDATE( superqix ) { superqix_state *state = screen->machine->driver_data<superqix_state>(); tilemap_draw(bitmap, cliprect, state->bg_tilemap, TILEMAP_DRAW_LAYER1, 0); |