diff options
Diffstat (limited to 'src/mame/video/higemaru.c')
-rw-r--r-- | src/mame/video/higemaru.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/video/higemaru.c b/src/mame/video/higemaru.c index 9d171988e1f..5e24fe017c9 100644 --- a/src/mame/video/higemaru.c +++ b/src/mame/video/higemaru.c @@ -89,19 +89,18 @@ WRITE8_MEMBER(higemaru_state::higemaru_c800_w) } } -static TILE_GET_INFO( get_bg_tile_info ) +TILE_GET_INFO_MEMBER(higemaru_state::get_bg_tile_info) { - higemaru_state *state = machine.driver_data<higemaru_state>(); - int code = state->m_videoram[tile_index] + ((state->m_colorram[tile_index] & 0x80) << 1); - int color = state->m_colorram[tile_index] & 0x1f; + int code = m_videoram[tile_index] + ((m_colorram[tile_index] & 0x80) << 1); + int color = m_colorram[tile_index] & 0x1f; - SET_TILE_INFO(0, code, color, 0); + SET_TILE_INFO_MEMBER(0, code, color, 0); } VIDEO_START( higemaru ) { higemaru_state *state = machine.driver_data<higemaru_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(higemaru_state::get_bg_tile_info),state), TILEMAP_SCAN_ROWS, 8, 8, 32, 32); } static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |