summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/firefox.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-06 10:15:51 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-06 10:15:51 +0000
commitd19e0caf9dfa3890af9e9730d73fd0bf28baaf37 (patch)
tree84338bb4b0efec73489cd9d8ec1891b47713fc50 /src/mame/drivers/firefox.c
parent17e7fa2f1ecb7017c2b136b9b70b9c53988427da (diff)
TILE/TILEMAP modernization part 1 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/firefox.c')
-rw-r--r--src/mame/drivers/firefox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/firefox.c b/src/mame/drivers/firefox.c
index 662624c0ee5..4a19975bf27 100644
--- a/src/mame/drivers/firefox.c
+++ b/src/mame/drivers/firefox.c
@@ -95,6 +95,7 @@ public:
DECLARE_READ8_MEMBER(riot_porta_r);
DECLARE_WRITE8_MEMBER(riot_porta_w);
DECLARE_WRITE_LINE_MEMBER(riot_irq);
+ TILE_GET_INFO_MEMBER(bgtile_get_info);
};
@@ -190,10 +191,9 @@ WRITE8_MEMBER(firefox_state::firefox_disc_data_w)
*
*************************************/
-static TILE_GET_INFO( bgtile_get_info )
+TILE_GET_INFO_MEMBER(firefox_state::bgtile_get_info)
{
- firefox_state *state = machine.driver_data<firefox_state>();
- SET_TILE_INFO(0, state->m_tileram[tile_index], 0, 0);
+ SET_TILE_INFO_MEMBER(0, m_tileram[tile_index], 0, 0);
}
@@ -207,7 +207,7 @@ WRITE8_MEMBER(firefox_state::tileram_w)
static VIDEO_START( firefox )
{
firefox_state *state = machine.driver_data<firefox_state>();
- state->m_bgtiles = tilemap_create(machine, bgtile_get_info, TILEMAP_SCAN_ROWS, 8,8, 64,64);
+ state->m_bgtiles = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(firefox_state::bgtile_get_info),state), TILEMAP_SCAN_ROWS, 8,8, 64,64);
state->m_bgtiles->set_transparent_pen(0);
state->m_bgtiles->set_scrolldy(machine.primary_screen->visible_area().min_y, 0);
}