summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/hanaawas.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/hanaawas.c')
-rw-r--r--src/mame/video/hanaawas.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/hanaawas.c b/src/mame/video/hanaawas.c
index 43dea05dd0d..915916835a0 100644
--- a/src/mame/video/hanaawas.c
+++ b/src/mame/video/hanaawas.c
@@ -75,15 +75,15 @@ WRITE8_HANDLER( hanaawas_colorram_w )
/* dirty both current and next offsets */
tilemap_mark_tile_dirty(bg_tilemap, offset);
- tilemap_mark_tile_dirty(bg_tilemap, (offset + (flip_screen_get() ? -1 : 1)) & 0x03ff);
+ tilemap_mark_tile_dirty(bg_tilemap, (offset + (flip_screen_get(space->machine) ? -1 : 1)) & 0x03ff);
}
WRITE8_HANDLER( hanaawas_portB_w )
{
/* bit 7 is flip screen */
- if (flip_screen_get() != (~data & 0x80))
+ if (flip_screen_get(space->machine) != (~data & 0x80))
{
- flip_screen_set(~data & 0x80);
+ flip_screen_set(space->machine, ~data & 0x80);
tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
}
}
@@ -91,7 +91,7 @@ WRITE8_HANDLER( hanaawas_portB_w )
static TILE_GET_INFO( get_bg_tile_info )
{
/* the color is determined by the current color byte, but the bank is via the previous one!!! */
- int offset = (tile_index + (flip_screen_get() ? 1 : -1)) & 0x3ff;
+ int offset = (tile_index + (flip_screen_get(machine) ? 1 : -1)) & 0x3ff;
int attr = colorram[offset];
int gfxbank = (attr & 0x40) >> 6;
int code = videoram[tile_index] + ((attr & 0x20) << 3);