summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/stadhero.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/stadhero.c')
-rw-r--r--src/mame/video/stadhero.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/video/stadhero.c b/src/mame/video/stadhero.c
index b534cd51ad3..9f5712bbc7c 100644
--- a/src/mame/video/stadhero.c
+++ b/src/mame/video/stadhero.c
@@ -42,14 +42,13 @@ WRITE16_MEMBER(stadhero_state::stadhero_pf1_data_w)
/******************************************************************************/
-static TILE_GET_INFO( get_pf1_tile_info )
+TILE_GET_INFO_MEMBER(stadhero_state::get_pf1_tile_info)
{
- stadhero_state *state = machine.driver_data<stadhero_state>();
- int tile=state->m_pf1_data[tile_index];
+ int tile=m_pf1_data[tile_index];
int color=tile >> 12;
tile=tile&0xfff;
- SET_TILE_INFO(
+ SET_TILE_INFO_MEMBER(
0,
tile,
color,
@@ -59,7 +58,7 @@ static TILE_GET_INFO( get_pf1_tile_info )
VIDEO_START( stadhero )
{
stadhero_state *state = machine.driver_data<stadhero_state>();
- state->m_pf1_tilemap = tilemap_create(machine, get_pf1_tile_info,TILEMAP_SCAN_ROWS, 8, 8,32,32);
+ state->m_pf1_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(stadhero_state::get_pf1_tile_info),state),TILEMAP_SCAN_ROWS, 8, 8,32,32);
state->m_pf1_tilemap->set_transparent_pen(0);
}