diff options
Diffstat (limited to 'src/mame/video/circusc.c')
-rw-r--r-- | src/mame/video/circusc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/video/circusc.c b/src/mame/video/circusc.c index ebf005d185f..c4cecd9bae2 100644 --- a/src/mame/video/circusc.c +++ b/src/mame/video/circusc.c @@ -99,14 +99,13 @@ PALETTE_INIT( circusc ) ***************************************************************************/ -static TILE_GET_INFO( get_tile_info ) +TILE_GET_INFO_MEMBER(circusc_state::get_tile_info) { - circusc_state *state = machine.driver_data<circusc_state>(); - UINT8 attr = state->m_colorram[tile_index]; + UINT8 attr = m_colorram[tile_index]; tileinfo.category = (attr & 0x10) >> 4; - SET_TILE_INFO(0, - state->m_videoram[tile_index] + ((attr & 0x20) << 3), + SET_TILE_INFO_MEMBER(0, + m_videoram[tile_index] + ((attr & 0x20) << 3), attr & 0x0f, TILE_FLIPYX((attr & 0xc0) >> 6)); } @@ -122,7 +121,7 @@ static TILE_GET_INFO( get_tile_info ) VIDEO_START( circusc ) { circusc_state *state = machine.driver_data<circusc_state>(); - state->m_bg_tilemap = tilemap_create(machine, get_tile_info, TILEMAP_SCAN_ROWS, 8, 8, 32, 32); + state->m_bg_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(circusc_state::get_tile_info),state), TILEMAP_SCAN_ROWS, 8, 8, 32, 32); state->m_bg_tilemap->set_scroll_cols(32); } |