summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/wgp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/wgp.c')
-rw-r--r--src/mame/video/wgp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/video/wgp.c b/src/mame/video/wgp.c
index d144e59be4a..ea107655230 100644
--- a/src/mame/video/wgp.c
+++ b/src/mame/video/wgp.c
@@ -18,19 +18,19 @@ INLINE void common_get_piv_tile_info( running_machine &machine, tile_data &tilei
TILE_FLIPYX( (attr & 0xc0) >> 6));
}
-static TILE_GET_INFO( get_piv0_tile_info )
+TILE_GET_INFO_MEMBER(wgp_state::get_piv0_tile_info)
{
- common_get_piv_tile_info(machine, tileinfo, tile_index, 0);
+ common_get_piv_tile_info(machine(), tileinfo, tile_index, 0);
}
-static TILE_GET_INFO( get_piv1_tile_info )
+TILE_GET_INFO_MEMBER(wgp_state::get_piv1_tile_info)
{
- common_get_piv_tile_info(machine, tileinfo, tile_index, 1);
+ common_get_piv_tile_info(machine(), tileinfo, tile_index, 1);
}
-static TILE_GET_INFO( get_piv2_tile_info )
+TILE_GET_INFO_MEMBER(wgp_state::get_piv2_tile_info)
{
- common_get_piv_tile_info(machine, tileinfo, tile_index, 2);
+ common_get_piv_tile_info(machine(), tileinfo, tile_index, 2);
}
@@ -38,9 +38,9 @@ static void wgp_core_vh_start( running_machine &machine, int piv_xoffs, int piv_
{
wgp_state *state = machine.driver_data<wgp_state>();
- state->m_piv_tilemap[0] = tilemap_create(machine, get_piv0_tile_info, TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
- state->m_piv_tilemap[1] = tilemap_create(machine, get_piv1_tile_info, TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
- state->m_piv_tilemap[2] = tilemap_create(machine, get_piv2_tile_info, TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
+ state->m_piv_tilemap[0] = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(wgp_state::get_piv0_tile_info),state), TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
+ state->m_piv_tilemap[1] = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(wgp_state::get_piv1_tile_info),state), TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
+ state->m_piv_tilemap[2] = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(wgp_state::get_piv2_tile_info),state), TILEMAP_SCAN_ROWS, 16, 16, 64, 64);
state->m_piv_xoffs = piv_xoffs;
state->m_piv_yoffs = piv_yoffs;