summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/commando.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/commando.c')
-rw-r--r--src/mame/video/commando.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/video/commando.c b/src/mame/video/commando.c
index 5d8511d2e8a..5b8471925ca 100644
--- a/src/mame/video/commando.c
+++ b/src/mame/video/commando.c
@@ -86,14 +86,13 @@ TILE_GET_INFO_MEMBER(commando_state::get_fg_tile_info)
SET_TILE_INFO_MEMBER(0, code, color, flags);
}
-VIDEO_START( commando )
+void commando_state::video_start()
{
- commando_state *state = machine.driver_data<commando_state>();
- state->m_bg_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(commando_state::get_bg_tile_info),state), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
- state->m_fg_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(commando_state::get_fg_tile_info),state), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
+ m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(commando_state::get_bg_tile_info),this), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
+ m_fg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(commando_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
- state->m_fg_tilemap->set_transparent_pen(3);
+ m_fg_tilemap->set_transparent_pen(3);
}
static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect )