diff options
Diffstat (limited to 'src/mame/video/trucocl.c')
-rw-r--r-- | src/mame/video/trucocl.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/video/trucocl.c b/src/mame/video/trucocl.c index bb8d72c4294..579efd4af64 100644 --- a/src/mame/video/trucocl.c +++ b/src/mame/video/trucocl.c @@ -57,25 +57,24 @@ WRITE8_MEMBER(trucocl_state::trucocl_colorram_w) m_bg_tilemap->mark_tile_dirty(offset); } -static TILE_GET_INFO( get_bg_tile_info ) +TILE_GET_INFO_MEMBER(trucocl_state::get_bg_tile_info) { - trucocl_state *state = machine.driver_data<trucocl_state>(); - int gfxsel = state->m_colorram[tile_index] & 1; - int bank = ( ( state->m_colorram[tile_index] >> 2 ) & 0x07 ); - int code = state->m_videoram[tile_index]; - int colour = (state->m_colorram[tile_index] & 2) >> 1; + int gfxsel = m_colorram[tile_index] & 1; + int bank = ( ( m_colorram[tile_index] >> 2 ) & 0x07 ); + int code = m_videoram[tile_index]; + int colour = (m_colorram[tile_index] & 2) >> 1; code |= ( bank & 1 ) << 10; code |= ( bank & 2 ) << 8; code += ( bank & 4 ) << 6; - SET_TILE_INFO(gfxsel,code,colour,0); + SET_TILE_INFO_MEMBER(gfxsel,code,colour,0); } VIDEO_START( trucocl ) { trucocl_state *state = machine.driver_data<trucocl_state>(); - state->m_bg_tilemap = tilemap_create( machine, get_bg_tile_info, TILEMAP_SCAN_ROWS, 8, 8, 32, 32 ); + state->m_bg_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(trucocl_state::get_bg_tile_info),state), TILEMAP_SCAN_ROWS, 8, 8, 32, 32 ); } SCREEN_UPDATE_IND16( trucocl ) |