summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/includes/suna8.h3
-rw-r--r--src/mame/video/suna8.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/includes/suna8.h b/src/mame/includes/suna8.h
index b03fc3f7ecd..a520cb1dc43 100644
--- a/src/mame/includes/suna8.h
+++ b/src/mame/includes/suna8.h
@@ -35,6 +35,8 @@ public:
int m_tiles;
int m_trombank;
int m_page;
+
+ TILE_GET_INFO_MEMBER(get_tile_info);
#endif
INT16 *m_samplebuf;
@@ -88,7 +90,6 @@ public:
DECLARE_DRIVER_INIT(brickzn);
DECLARE_DRIVER_INIT(hardhead);
DECLARE_DRIVER_INIT(suna8);
- TILE_GET_INFO_MEMBER(get_tile_info);
};
diff --git a/src/mame/video/suna8.c b/src/mame/video/suna8.c
index 37a67fab79b..d25af58b5a3 100644
--- a/src/mame/video/suna8.c
+++ b/src/mame/video/suna8.c
@@ -175,7 +175,7 @@ static void suna8_vh_start_common(running_machine &machine, int dim)
}
#if TILEMAPS
- state->m_bg_tilemap = tilemap_create( machine, get_tile_info, TILEMAP_SCAN_COLS,
+ state->m_bg_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(suna8_state::get_tile_info),state), TILEMAP_SCAN_COLS,
8, 8, 0x20*((state->m_text_dim > 0)?4:8), 0x20);