summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/gotcha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/gotcha.c')
-rw-r--r--src/mame/video/gotcha.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/video/gotcha.c b/src/mame/video/gotcha.c
index 215e89774e6..46ce0442370 100644
--- a/src/mame/video/gotcha.c
+++ b/src/mame/video/gotcha.c
@@ -13,23 +13,22 @@ TILEMAP_MAPPER_MEMBER(gotcha_state::gotcha_tilemap_scan)
return (col & 0x1f) | (row << 5) | ((col & 0x20) << 5);
}
-INLINE void get_tile_info( running_machine &machine, tile_data &tileinfo, int tile_index ,UINT16 *vram, int color_offs)
+inline void gotcha_state::get_tile_info( tile_data &tileinfo, int tile_index ,UINT16 *vram, int color_offs)
{
- gotcha_state *state = machine.driver_data<gotcha_state>();
UINT16 data = vram[tile_index];
- int code = (data & 0x3ff) | (state->m_gfxbank[(data & 0x0c00) >> 10] << 10);
+ int code = (data & 0x3ff) | (m_gfxbank[(data & 0x0c00) >> 10] << 10);
- SET_TILE_INFO(0, code, (data >> 12) + color_offs, 0);
+ SET_TILE_INFO_MEMBER(0, code, (data >> 12) + color_offs, 0);
}
TILE_GET_INFO_MEMBER(gotcha_state::fg_get_tile_info)
{
- get_tile_info(machine(), tileinfo, tile_index, m_fgvideoram, 0);
+ get_tile_info(tileinfo, tile_index, m_fgvideoram, 0);
}
TILE_GET_INFO_MEMBER(gotcha_state::bg_get_tile_info)
{
- get_tile_info(machine(), tileinfo, tile_index, m_bgvideoram, 16);
+ get_tile_info(tileinfo, tile_index, m_bgvideoram, 16);
}