summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/jubilee.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/jubilee.c
parent17e7fa2f1ecb7017c2b136b9b70b9c53988427da (diff)
TILE/TILEMAP modernization part 1 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/jubilee.c')
-rw-r--r--src/mame/drivers/jubilee.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/jubilee.c b/src/mame/drivers/jubilee.c
index dc87b691675..94916dc2a01 100644
--- a/src/mame/drivers/jubilee.c
+++ b/src/mame/drivers/jubilee.c
@@ -101,6 +101,7 @@ public:
tilemap_t *m_bg_tilemap;
DECLARE_WRITE8_MEMBER(jubileep_videoram_w);
DECLARE_READ8_MEMBER(unk_r);
+ TILE_GET_INFO_MEMBER(get_bg_tile_info);
};
@@ -116,12 +117,11 @@ WRITE8_MEMBER(jubilee_state::jubileep_videoram_w)
}
-static TILE_GET_INFO( get_bg_tile_info )
+TILE_GET_INFO_MEMBER(jubilee_state::get_bg_tile_info)
{
- jubilee_state *state = machine.driver_data<jubilee_state>();
- int code = state->m_videoram[tile_index];
+ int code = m_videoram[tile_index];
- SET_TILE_INFO( 0, code, 0, 0);
+ SET_TILE_INFO_MEMBER( 0, code, 0, 0);
}
@@ -129,7 +129,7 @@ static TILE_GET_INFO( get_bg_tile_info )
static VIDEO_START( jubileep )
{
jubilee_state *state = machine.driver_data<jubilee_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(jubilee_state::get_bg_tile_info),state), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
}