summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/suna8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/suna8.c')
-rw-r--r--src/mame/video/suna8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/suna8.c b/src/mame/video/suna8.c
index dcbb086c552..ff00aa40167 100644
--- a/src/mame/video/suna8.c
+++ b/src/mame/video/suna8.c
@@ -83,7 +83,7 @@ static TILE_GET_INFO( get_tile_info )
if (machine.input().code_pressed(KEYCODE_X))
{
- UINT8 *rom = machine.region("maincpu")->base() + 0x10000 + 0x4000 * state->m_trombank;
+ UINT8 *rom = state->memregion("maincpu")->base() + 0x10000 + 0x4000 * state->m_trombank;
code = rom[ 2 * tile_index + 0 ];
attr = rom[ 2 * tile_index + 1 ];
}
@@ -416,7 +416,7 @@ SCREEN_UPDATE_IND16( suna8 )
if (screen.machine().input().code_pressed(KEYCODE_Z) || screen.machine().input().code_pressed(KEYCODE_X))
{
suna8_state *state = screen.machine().driver_data<suna8_state>();
- int max_tiles = screen.machine().region("gfx1")->bytes() / (0x400 * 0x20);
+ int max_tiles = state->memregion("gfx1")->bytes() / (0x400 * 0x20);
if (screen.machine().input().code_pressed_once(KEYCODE_Q)) { state->m_page--; screen.machine().tilemap().mark_all_dirty(); }
if (screen.machine().input().code_pressed_once(KEYCODE_W)) { state->m_page++; screen.machine().tilemap().mark_all_dirty(); }