diff options
Diffstat (limited to 'src/mame/video/namcos86.c')
-rw-r--r-- | src/mame/video/namcos86.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/video/namcos86.c b/src/mame/video/namcos86.c index 10c4c96649e..d8eb7d8b81f 100644 --- a/src/mame/video/namcos86.c +++ b/src/mame/video/namcos86.c @@ -300,7 +300,7 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta sx += sprite_xoffs; sy -= sprite_yoffs; - if (flip_screen_get()) + if (flip_screen_get(machine)) { sx = -sx - sizex; sy = -sy - sizey; @@ -328,14 +328,14 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta } -static void set_scroll(int layer) +static void set_scroll(running_machine *machine, int layer) { static const int xdisp[4] = { 47, 49, 46, 48 }; int scrollx,scrolly; scrollx = xscroll[layer] - xdisp[layer]; scrolly = yscroll[layer] + 9; - if (flip_screen_get()) + if (flip_screen_get(machine)) { scrollx = -scrollx; scrolly = -scrolly; @@ -350,13 +350,13 @@ VIDEO_UPDATE( namcos86 ) int layer; /* flip screen is embedded in the sprite control registers */ - /* can't use flip_screen_set() because the visible area is asymmetrical */ - flip_screen_set_no_update(spriteram[0x07f6] & 1); - tilemap_set_flip(ALL_TILEMAPS,flip_screen_get() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); - set_scroll(0); - set_scroll(1); - set_scroll(2); - set_scroll(3); + /* can't use flip_screen_set(screen->machine, ) because the visible area is asymmetrical */ + flip_screen_set_no_update(screen->machine, spriteram[0x07f6] & 1); + tilemap_set_flip(ALL_TILEMAPS,flip_screen_get(screen->machine) ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); + set_scroll(screen->machine, 0); + set_scroll(screen->machine, 1); + set_scroll(screen->machine, 2); + set_scroll(screen->machine, 3); bitmap_fill(priority_bitmap, cliprect, 0); |