summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mgolf.c
diff options
context:
space:
mode:
author Alex W. Jackson <alex.w.jackson@gmail.com>2014-03-10 09:58:31 +0000
committer Alex W. Jackson <alex.w.jackson@gmail.com>2014-03-10 09:58:31 +0000
commit95aafe03e51a9d111db7ebddca10b63291e14567 (patch)
tree67b35596135a2640e5149e7916d640a30190c68d /src/mame/drivers/mgolf.c
parent69e33bcb5ed9a375db6e7f3bc5a266f6731cc8d0 (diff)
You now specify a gfxdecode device once when you create a tilemap, rather than each time in the tile info callback. Updated all drivers accordingly [Alex Jackson]
Diffstat (limited to 'src/mame/drivers/mgolf.c')
-rw-r--r--src/mame/drivers/mgolf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/mgolf.c b/src/mame/drivers/mgolf.c
index 99fd892d0b3..66d7204e3f6 100644
--- a/src/mame/drivers/mgolf.c
+++ b/src/mame/drivers/mgolf.c
@@ -65,7 +65,7 @@ TILE_GET_INFO_MEMBER(mgolf_state::get_tile_info)
{
UINT8 code = m_video_ram[tile_index];
- SET_TILE_INFO_MEMBER(m_gfxdecode, 0, code, code >> 7, 0);
+ SET_TILE_INFO_MEMBER(0, code, code >> 7, 0);
}
@@ -78,7 +78,7 @@ WRITE8_MEMBER(mgolf_state::mgolf_vram_w)
void mgolf_state::video_start()
{
- m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(mgolf_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
+ m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(mgolf_state::get_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
}