diff options
Diffstat (limited to 'src/mame/video/pushman.c')
-rw-r--r-- | src/mame/video/pushman.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/video/pushman.c b/src/mame/video/pushman.c index a94da84f119..7713bb42a18 100644 --- a/src/mame/video/pushman.c +++ b/src/mame/video/pushman.c @@ -116,16 +116,15 @@ static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const } } -SCREEN_UPDATE_IND16( pushman ) +UINT32 pushman_state::screen_update_pushman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - pushman_state *state = screen.machine().driver_data<pushman_state>(); /* Setup the tilemaps */ - state->m_bg_tilemap->set_scrollx(0, state->m_control[0]); - state->m_bg_tilemap->set_scrolly(0, 0xf00 - state->m_control[1]); + m_bg_tilemap->set_scrollx(0, m_control[0]); + m_bg_tilemap->set_scrolly(0, 0xf00 - m_control[1]); - state->m_bg_tilemap->draw(bitmap, cliprect, 0, 0); + m_bg_tilemap->draw(bitmap, cliprect, 0, 0); draw_sprites(screen.machine(), bitmap, cliprect); - state->m_tx_tilemap->draw(bitmap, cliprect, 0, 0); + m_tx_tilemap->draw(bitmap, cliprect, 0, 0); return 0; } |