summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/spdodgeb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/spdodgeb.c')
-rw-r--r--src/mame/video/spdodgeb.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/video/spdodgeb.c b/src/mame/video/spdodgeb.c
index 14e583c4772..38591f85436 100644
--- a/src/mame/video/spdodgeb.c
+++ b/src/mame/video/spdodgeb.c
@@ -45,21 +45,20 @@ PALETTE_INIT( spdodgeb )
***************************************************************************/
-static TILEMAP_MAPPER( background_scan )
+TILEMAP_MAPPER_MEMBER(spdodgeb_state::background_scan)
{
/* logical (col,row) -> memory offset */
return (col & 0x1f) + ((row & 0x1f) << 5) + ((col & 0x20) << 5);
}
-static TILE_GET_INFO( get_bg_tile_info )
+TILE_GET_INFO_MEMBER(spdodgeb_state::get_bg_tile_info)
{
- spdodgeb_state *state = machine.driver_data<spdodgeb_state>();
- UINT8 code = state->m_videoram[tile_index];
- UINT8 attr = state->m_videoram[tile_index + 0x800];
- SET_TILE_INFO(
+ UINT8 code = m_videoram[tile_index];
+ UINT8 attr = m_videoram[tile_index + 0x800];
+ SET_TILE_INFO_MEMBER(
0,
code + ((attr & 0x1f) << 8),
- ((attr & 0xe0) >> 5) + 8 * state->m_tile_palbank,
+ ((attr & 0xe0) >> 5) + 8 * m_tile_palbank,
0);
}
@@ -73,7 +72,7 @@ static TILE_GET_INFO( get_bg_tile_info )
VIDEO_START( spdodgeb )
{
spdodgeb_state *state = machine.driver_data<spdodgeb_state>();
- state->m_bg_tilemap = tilemap_create(machine, get_bg_tile_info,background_scan,8,8,64,32);
+ state->m_bg_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(spdodgeb_state::get_bg_tile_info),state),tilemap_mapper_delegate(FUNC(spdodgeb_state::background_scan),state),8,8,64,32);
}