diff options
author | Couriersud <couriersud@users.noreply.github.com> | 2008-02-25 21:15:59 +0000 |
---|---|---|
committer | Couriersud <couriersud@users.noreply.github.com> | 2008-02-25 21:15:59 +0000 |
commit | 8e96884cc637d21017d4ad8de983368bb7a1aff6 (patch) | |
tree | b170928277f58b4c4c0b34840aba47e0ca23b5bd /src | |
parent | df962f9ec4876fae1ca1c34e97d7f00c4ae49a9b (diff) |
* Fix issues related to flip_screen being a define
* add "int flip_screen_get(void)"
* define flip_screen flip_screen_get()
* clean up drivers with collisions
* mark write accesses to flip_screen_x with FIXME
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/video/generic.c | 10 | ||||
-rw-r--r-- | src/emu/video/generic.h | 5 | ||||
-rw-r--r-- | src/mame/audio/n8080.c | 3 | ||||
-rw-r--r-- | src/mame/drivers/20pacgal.c | 2 | ||||
-rw-r--r-- | src/mame/drivers/backfire.c | 7 | ||||
-rw-r--r-- | src/mame/drivers/deco156.c | 5 | ||||
-rw-r--r-- | src/mame/drivers/laserbat.c | 3 | ||||
-rw-r--r-- | src/mame/drivers/pacland.c | 4 | ||||
-rw-r--r-- | src/mame/includes/20pacgal.h | 2 | ||||
-rw-r--r-- | src/mame/includes/qix.h | 2 | ||||
-rw-r--r-- | src/mame/machine/qix.c | 4 | ||||
-rw-r--r-- | src/mame/video/20pacgal.c | 4 | ||||
-rw-r--r-- | src/mame/video/baraduke.c | 4 | ||||
-rw-r--r-- | src/mame/video/bking.c | 3 | ||||
-rw-r--r-- | src/mame/video/madalien.c | 28 | ||||
-rw-r--r-- | src/mame/video/n8080.c | 11 | ||||
-rw-r--r-- | src/mame/video/namcos1.c | 4 | ||||
-rw-r--r-- | src/mame/video/namcos86.c | 4 | ||||
-rw-r--r-- | src/mame/video/qix.c | 6 | ||||
-rw-r--r-- | src/mame/video/simpl156.c | 3 | ||||
-rw-r--r-- | src/mame/video/skykid.c | 2 | ||||
-rw-r--r-- | src/mame/video/sshangha.c | 5 | ||||
-rw-r--r-- | src/mame/video/zaxxon.c | 3 | ||||
-rw-r--r-- | src/mame/video/zodiack.c | 3 |
24 files changed, 80 insertions, 47 deletions
diff --git a/src/emu/video/generic.c b/src/emu/video/generic.c index a3fc52a26a6..c5f6e9efb0e 100644 --- a/src/emu/video/generic.c +++ b/src/emu/video/generic.c @@ -526,6 +526,16 @@ void flip_screen_y_set(int on) } +/*------------------------------------------------- + flip_screen_get - get global flip +-------------------------------------------------*/ + +int flip_screen_get(void) +{ + return flip_screen_x; +} + + /*************************************************************************** COMMON PALETTE INITIALIZATION ***************************************************************************/ diff --git a/src/emu/video/generic.h b/src/emu/video/generic.h index 5b1a15ee308..027b76870b4 100644 --- a/src/emu/video/generic.h +++ b/src/emu/video/generic.h @@ -63,6 +63,7 @@ extern UINT8 *paletteram_2; /* use when palette RAM is split in two parts */ extern UINT16 *paletteram16_2; extern mame_bitmap *tmpbitmap; + extern int flip_screen_x, flip_screen_y; @@ -124,7 +125,9 @@ void buffer_spriteram_2(UINT8 *ptr, int length); void flip_screen_set(int on); void flip_screen_x_set(int on); void flip_screen_y_set(int on); -#define flip_screen flip_screen_x +int flip_screen_get(void); + +#define flip_screen flip_screen_get() diff --git a/src/mame/audio/n8080.c b/src/mame/audio/n8080.c index 0db2a9dd88c..db1468c4251 100644 --- a/src/mame/audio/n8080.c +++ b/src/mame/audio/n8080.c @@ -323,7 +323,8 @@ static void delayed_sound_2(int data) if (n8080_hardware == 1) { - flip_screen = data & 0x20; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = data & 0x20; } if (n8080_hardware == 3) { diff --git a/src/mame/drivers/20pacgal.c b/src/mame/drivers/20pacgal.c index 99262f23cd8..bc230331f2f 100644 --- a/src/mame/drivers/20pacgal.c +++ b/src/mame/drivers/20pacgal.c @@ -231,7 +231,7 @@ static ADDRESS_MAP_START( 20pacgal_io_map, ADDRESS_SPACE_IO, 8 ) AM_RANGE(0x88, 0x88) AM_WRITE(rom_bank_select_w) AM_RANGE(0x89, 0x89) AM_WRITE(_20pacgal_dac_w) AM_RANGE(0x8a, 0x8a) AM_WRITE(MWA8_NOP) /* stars: bits 3-4 = active set; bit 5 = enable */ - AM_RANGE(0x8b, 0x8b) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(_20pacgal_state, flip_screen) + AM_RANGE(0x8b, 0x8b) AM_WRITE(MWA8_RAM) AM_BASE_MEMBER(_20pacgal_state, flip) AM_RANGE(0x8f, 0x8f) AM_WRITE(_20pacgal_coin_counter_w) ADDRESS_MAP_END diff --git a/src/mame/drivers/backfire.c b/src/mame/drivers/backfire.c index 38284eb7a06..4757bf8e1f9 100644 --- a/src/mame/drivers/backfire.c +++ b/src/mame/drivers/backfire.c @@ -93,8 +93,9 @@ static VIDEO_START(backfire) static void draw_sprites(running_machine *machine,mame_bitmap *bitmap,const rectangle *cliprect, UINT32 *backfire_spriteram32, int region) { int offs; - - flip_screen = 1; + + //FIXME: flip_screen_x should not be written! + flip_screen_x = 1; for (offs = (0x1400/4)-4;offs >= 0;offs -= 4) // 0x1400 for charlien { @@ -144,7 +145,7 @@ static void draw_sprites(running_machine *machine,mame_bitmap *bitmap,const rect inc = 1; } - if (flip_screen) + if (flip_screen_x) { y=240-y; x=304-x; diff --git a/src/mame/drivers/deco156.c b/src/mame/drivers/deco156.c index 31e11fce456..2ddc27c4794 100644 --- a/src/mame/drivers/deco156.c +++ b/src/mame/drivers/deco156.c @@ -64,7 +64,8 @@ static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rec { int offs; - flip_screen = 1; + //FIXME: flip_screen_x should not be written! + flip_screen_x = 1; for (offs = (0x1400/4)-4;offs >= 0;offs -= 4) // 0x1400 for charlien { @@ -110,7 +111,7 @@ static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rec inc = 1; } - if (flip_screen) + if (flip_screen_x) { y=240-y; x=304-x; diff --git a/src/mame/drivers/laserbat.c b/src/mame/drivers/laserbat.c index 2481cc82b57..294e14f3da7 100644 --- a/src/mame/drivers/laserbat.c +++ b/src/mame/drivers/laserbat.c @@ -80,7 +80,8 @@ static WRITE8_HANDLER( laserbat_input_mux_w ) { laserbat_input_mux = (data & 0x30) >> 4; - flip_screen = data & 0x08; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = data & 0x08; coin_counter_w(0,data & 1); diff --git a/src/mame/drivers/pacland.c b/src/mame/drivers/pacland.c index d6724d51b68..239a9e43934 100644 --- a/src/mame/drivers/pacland.c +++ b/src/mame/drivers/pacland.c @@ -201,7 +201,9 @@ static WRITE8_HANDLER( pacland_flipscreen_w ) { int bit = !BIT(offset,11); /* can't use flip_screen_set() because the visible area is asymmetrical */ - flip_screen = bit; + /* FIXME: flip_screen_x should not be written. The above issue needs */ + /* some other solution */ + flip_screen_x = bit; tilemap_set_flip(ALL_TILEMAPS,flip_screen ? (TILEMAP_FLIPX | TILEMAP_FLIPY) : 0); } diff --git a/src/mame/includes/20pacgal.h b/src/mame/includes/20pacgal.h index 7de9eb61519..a201443316e 100644 --- a/src/mame/includes/20pacgal.h +++ b/src/mame/includes/20pacgal.h @@ -16,7 +16,7 @@ struct __20pacgal_state UINT8 *video_ram; UINT8 *sprite_ram; UINT8 *sprite_color_lookup; - UINT8 *flip_screen; + UINT8 *flip; /* machine state */ UINT8 game_selected; /* 0 = Ms. Pac-Man, 1 = Galaga */ diff --git a/src/mame/includes/qix.h b/src/mame/includes/qix.h index 697a67971cc..688b334ab43 100644 --- a/src/mame/includes/qix.h +++ b/src/mame/includes/qix.h @@ -31,7 +31,7 @@ struct _qix_state UINT8 *videoram_address; UINT8 *videoram_mask; UINT8 *paletteram; - UINT8 flip_screen; + UINT8 flip; UINT8 palette_bank; UINT8 leds; UINT8 *scanline_latch; diff --git a/src/mame/machine/qix.c b/src/mame/machine/qix.c index f9c181c8fca..5045a61d17a 100644 --- a/src/mame/machine/qix.c +++ b/src/mame/machine/qix.c @@ -605,7 +605,7 @@ static READ8_HANDLER( slither_trak_lr_r ) { qix_state *state = Machine->driver_data; - return readinputport(state->flip_screen ? 6 : 4); + return readinputport(state->flip ? 6 : 4); } @@ -613,5 +613,5 @@ static READ8_HANDLER( slither_trak_ud_r ) { qix_state *state = Machine->driver_data; - return readinputport(state->flip_screen ? 5 : 3); + return readinputport(state->flip ? 5 : 3); } diff --git a/src/mame/video/20pacgal.c b/src/mame/video/20pacgal.c index 3cdf3ad0d69..83af467c7c5 100644 --- a/src/mame/video/20pacgal.c +++ b/src/mame/video/20pacgal.c @@ -173,7 +173,7 @@ static void draw_sprites(const _20pacgal_state *state, mame_bitmap *bitmap) sy = (sy & 0xff) - 32; /* fix wraparound */ /* only Galaga appears to be effected by the global flip state */ - if (state->game_selected && (state->flip_screen[0] & 0x01)) + if (state->game_selected && (state->flip[0] & 0x01)) { flip_x = !flip_x; flip_y = !flip_y; @@ -201,7 +201,7 @@ static void draw_chars(const _20pacgal_state *state, mame_bitmap *bitmap) { offs_t offs; - int flip = state->flip_screen[0] & 0x01; + int flip = state->flip[0] & 0x01; /* for each byte in the video RAM */ for (offs = 0; offs < 0x400; offs++) diff --git a/src/mame/video/baraduke.c b/src/mame/video/baraduke.c index 001f666a096..e0bbff95c7b 100644 --- a/src/mame/video/baraduke.c +++ b/src/mame/video/baraduke.c @@ -313,7 +313,9 @@ VIDEO_UPDATE( baraduke ) /* flip screen is embedded in the sprite control registers */ /* can't use flip_screen_set() because the visible area is asymmetrical */ - flip_screen = spriteram[0x07f6] & 0x01; + /* FIXME: flip_screen_x should not be written. The above issue needs */ + /* some other solution */ + flip_screen_x = spriteram[0x07f6] & 0x01; tilemap_set_flip(ALL_TILEMAPS,flip_screen ? (TILEMAP_FLIPX | TILEMAP_FLIPY) : 0); set_scroll(0); set_scroll(1); diff --git a/src/mame/video/bking.c b/src/mame/video/bking.c index 2975d219820..7770c8a91ba 100644 --- a/src/mame/video/bking.c +++ b/src/mame/video/bking.c @@ -149,7 +149,8 @@ WRITE8_HANDLER( bking_cont1_w ) coin_lockout_global_w(~data & 0x01); - flip_screen = data & 0x04; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = data & 0x04; tilemap_set_flip(ALL_TILEMAPS, flip_screen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c index faef63e10ed..bf342c2f6ae 100644 --- a/src/mame/video/madalien.c +++ b/src/mame/video/madalien.c @@ -185,7 +185,7 @@ static VIDEO_START( madalien ) } -static void draw_edges(mame_bitmap *bitmap, const rectangle *cliprect, int flip_screen, int scroll_mode) +static void draw_edges(mame_bitmap *bitmap, const rectangle *cliprect, int flip, int scroll_mode) { rectangle clip_edge1; rectangle clip_edge2; @@ -193,7 +193,7 @@ static void draw_edges(mame_bitmap *bitmap, const rectangle *cliprect, int flip_ clip_edge1 = *cliprect; clip_edge2 = *cliprect; - if (flip_screen) + if (flip) { clip_edge1.min_y = *madalien_edge1_pos | 0x80; clip_edge2.max_y = (*madalien_edge2_pos & 0x7f) ^ 0x7f; @@ -210,11 +210,11 @@ static void draw_edges(mame_bitmap *bitmap, const rectangle *cliprect, int flip_ tilemap_mark_all_tiles_dirty(tilemap_edge1[scroll_mode]); tilemap_mark_all_tiles_dirty(tilemap_edge2[scroll_mode]); - tilemap_set_flip(tilemap_edge1[scroll_mode], flip_screen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); + tilemap_set_flip(tilemap_edge1[scroll_mode], flip ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); tilemap_set_scrollx(tilemap_edge1[scroll_mode], 0, -(*madalien_scroll & 0xfc)); tilemap_set_scrolly(tilemap_edge1[scroll_mode], 0, *madalien_edge1_pos & 0x7f); - tilemap_set_flip(tilemap_edge2[scroll_mode], flip_screen ? TILEMAP_FLIPX : TILEMAP_FLIPY); + tilemap_set_flip(tilemap_edge2[scroll_mode], flip ? TILEMAP_FLIPX : TILEMAP_FLIPY); tilemap_set_scrollx(tilemap_edge2[scroll_mode], 0, -(*madalien_scroll & 0xfc)); tilemap_set_scrolly(tilemap_edge2[scroll_mode], 0, *madalien_edge2_pos & 0x7f); @@ -223,7 +223,7 @@ static void draw_edges(mame_bitmap *bitmap, const rectangle *cliprect, int flip_ } -static void draw_headlight(mame_bitmap *bitmap, const rectangle *cliprect, int flip_screen) +static void draw_headlight(mame_bitmap *bitmap, const rectangle *cliprect, int flip) { if (BIT(*madalien_video_flags, 0)) { @@ -234,7 +234,7 @@ static void draw_headlight(mame_bitmap *bitmap, const rectangle *cliprect, int f UINT8 x; UINT8 hy = y - *madalien_headlight_pos; - if (flip_screen) + if (flip) hy = ~hy; if ((hy < cliprect->min_y) || (hy > cliprect->max_y)) @@ -244,7 +244,7 @@ static void draw_headlight(mame_bitmap *bitmap, const rectangle *cliprect, int f { UINT8 hx = x; - if (flip_screen) + if (flip) hx = ~hx; if ((hx < cliprect->min_x) || (hx > cliprect->max_x)) @@ -258,7 +258,7 @@ static void draw_headlight(mame_bitmap *bitmap, const rectangle *cliprect, int f } -static void draw_foreground(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, int flip_screen) +static void draw_foreground(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect, int flip) { int i; @@ -266,14 +266,14 @@ static void draw_foreground(running_machine *machine, mame_bitmap *bitmap, const decodechar(machine->gfx[0], i, madalien_charram); tilemap_mark_all_tiles_dirty(tilemap_fg); - tilemap_set_flip(tilemap_fg, flip_screen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); + tilemap_set_flip(tilemap_fg, flip ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0); tilemap_draw(bitmap, cliprect, tilemap_fg, 0, 0); } static VIDEO_UPDATE( madalien ) { - int flip_screen = BIT(readinputportbytag("DIP"), 6) && BIT(*madalien_video_control, 0); + int flip = BIT(readinputportbytag("DIP"), 6) && BIT(*madalien_video_control, 0); // bits #0 and #1 define scrolling mode // @@ -285,8 +285,8 @@ static VIDEO_UPDATE( madalien ) int scroll_mode = *madalien_scroll & 3; fillbitmap(bitmap, 0, cliprect); - draw_edges(bitmap, cliprect, flip_screen, scroll_mode); - draw_foreground(machine, bitmap, cliprect, flip_screen); + draw_edges(bitmap, cliprect, flip, scroll_mode); + draw_foreground(machine, bitmap, cliprect, flip); /* highlight section A (outside of tunnels) */ @@ -304,7 +304,7 @@ static VIDEO_UPDATE( madalien ) if (scroll_mode == 3) max_x = (*madalien_scroll & 0xfc) - 1; - if (flip_screen) + if (flip) { int max_x_save = max_x; max_x = 0xff - min_x; @@ -317,7 +317,7 @@ static VIDEO_UPDATE( madalien ) *BITMAP_ADDR16(bitmap, y, x) |= 8; } - draw_headlight(bitmap, cliprect, flip_screen); + draw_headlight(bitmap, cliprect, flip); return 0; } diff --git a/src/mame/video/n8080.c b/src/mame/video/n8080.c index 3cc7844c393..1929975c632 100644 --- a/src/mame/video/n8080.c +++ b/src/mame/video/n8080.c @@ -29,7 +29,8 @@ WRITE8_HANDLER( n8080_video_control_w ) sheriff_color_mode = (data >> 3) & 3; sheriff_color_data = (data >> 0) & 7; - flip_screen = data & 0x20; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = data & 0x20; } @@ -108,7 +109,8 @@ VIDEO_START( spacefev ) { cannon_timer = timer_alloc(spacefev_stop_red_cannon, NULL); - flip_screen = 0; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = 0; spacefev_red_screen = 0; spacefev_red_cannon = 0; @@ -117,7 +119,8 @@ VIDEO_START( spacefev ) VIDEO_START( sheriff ) { - flip_screen = 0; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = 0; sheriff_color_mode = 0; sheriff_color_data = 0; @@ -144,7 +147,7 @@ VIDEO_START( helifire ) helifire_LSFR[i] = data; } - flip_screen = 0; + flip_screen_x = 0; helifire_flash = 0; } diff --git a/src/mame/video/namcos1.c b/src/mame/video/namcos1.c index 9d0e904e154..8fff33b504b 100644 --- a/src/mame/video/namcos1.c +++ b/src/mame/video/namcos1.c @@ -345,7 +345,9 @@ VIDEO_UPDATE( namcos1 ) /* flip screen is embedded in the sprite control registers */ /* can't use flip_screen_set() because the visible area is asymmetrical */ - flip_screen = spriteram[0x07f6] & 1; + /* FIXME: flip_screen_x should not be written. The above issue needs */ + /* some other solution */ + flip_screen_x = spriteram[0x07f6] & 1; tilemap_set_flip(ALL_TILEMAPS,flip_screen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); diff --git a/src/mame/video/namcos86.c b/src/mame/video/namcos86.c index dc3f88a9f8b..6e48be712f9 100644 --- a/src/mame/video/namcos86.c +++ b/src/mame/video/namcos86.c @@ -351,7 +351,9 @@ VIDEO_UPDATE( namcos86 ) /* flip screen is embedded in the sprite control registers */ /* can't use flip_screen_set() because the visible area is asymmetrical */ - flip_screen = spriteram[0x07f6] & 1; + /* FIXME: flip_screen_x should not be written. The above issue needs */ + /* some other solution */ + flip_screen_x = spriteram[0x07f6] & 1; tilemap_set_flip(ALL_TILEMAPS,flip_screen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); set_scroll(0); set_scroll(1); diff --git a/src/mame/video/qix.c b/src/mame/video/qix.c index a2eb584267f..4cbdbcfc656 100644 --- a/src/mame/video/qix.c +++ b/src/mame/video/qix.c @@ -53,7 +53,7 @@ static VIDEO_START( qix ) /* set up save states */ state_save_register_global_pointer(state->videoram, 256 * 256); - state_save_register_global(state->flip_screen); + state_save_register_global(state->flip); state_save_register_global(state->palette_bank); state_save_register_global(state->leds); } @@ -93,7 +93,7 @@ WRITE8_HANDLER( qix_flip_screen_w ) { qix_state *state = Machine->driver_data; - state->flip_screen = data; + state->flip = data; } @@ -363,7 +363,7 @@ static void qix_update_row(running_machine *machine, mc6845_t *mc6845, mame_bitm /* the memory is hooked up to the MA, RA lines this way */ offs_t offs = ((ma << 6) & 0xf800) | ((ra << 8) & 0x0700); - offs_t offs_xor = state->flip_screen ? 0xffff : 0; + offs_t offs_xor = state->flip ? 0xffff : 0; for (x = 0; x < x_count * 8; x++) scanline[x] = state->videoram[(offs + x) ^ offs_xor]; diff --git a/src/mame/video/simpl156.c b/src/mame/video/simpl156.c index ad39d3f539f..d0712f455b5 100644 --- a/src/mame/video/simpl156.c +++ b/src/mame/video/simpl156.c @@ -40,7 +40,8 @@ static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rec { int offs; - flip_screen = 1; + //FIXME: flip_screen_x should not be written! + flip_screen_x = 1; for (offs = (0x1400/4)-4;offs >= 0;offs -= 4) // 0x1400 for charlien { diff --git a/src/mame/video/skykid.c b/src/mame/video/skykid.c index a19fb2717da..af88bad3a8f 100644 --- a/src/mame/video/skykid.c +++ b/src/mame/video/skykid.c @@ -123,7 +123,7 @@ VIDEO_START( skykid ) state_save_register_global(priority); state_save_register_global(scroll_x); state_save_register_global(scroll_y); - state_save_register_global(flip_screen); + state_save_register_global(flip_screen_x); } diff --git a/src/mame/video/sshangha.c b/src/mame/video/sshangha.c index b73e4df9584..9506ba5a122 100644 --- a/src/mame/video/sshangha.c +++ b/src/mame/video/sshangha.c @@ -188,8 +188,9 @@ VIDEO_UPDATE( sshangha ) static int last_pf1_bank,last_pf2_bank; int offs; - flip_screen=sshangha_control_0[0]&0x80; - tilemap_set_flip(ALL_TILEMAPS,flip_screen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); + //FIXME: flip_screen_x should not be written! + flip_screen_x=sshangha_control_0[0]&0x80; + tilemap_set_flip(ALL_TILEMAPS,flip_screen_x ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); tilemap_set_enable( pf2_tilemap, sshangha_control_0[5]&0x8000); tilemap_set_enable( pf1_8x8_tilemap, sshangha_control_0[5]&0x0080); diff --git a/src/mame/video/zaxxon.c b/src/mame/video/zaxxon.c index 74e44669fca..6ad09931fa7 100644 --- a/src/mame/video/zaxxon.c +++ b/src/mame/video/zaxxon.c @@ -189,7 +189,8 @@ VIDEO_START( congo ) WRITE8_HANDLER( zaxxon_flipscreen_w ) { /* low bit controls flip; background and sprite flip are handled at render time */ - flip_screen = ~data & 1; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = ~data & 1; tilemap_set_flip(fg_tilemap, flip_screen ? (TILEMAP_FLIPX | TILEMAP_FLIPY) : 0); } diff --git a/src/mame/video/zodiack.c b/src/mame/video/zodiack.c index e87df404c61..f8351cf0983 100644 --- a/src/mame/video/zodiack.c +++ b/src/mame/video/zodiack.c @@ -130,7 +130,8 @@ VIDEO_START( zodiack ) tilemap_set_transparent_pen(fg_tilemap, 0); tilemap_set_scroll_cols(fg_tilemap, 32); - flip_screen = 0; + /* FIXME: flip_screen_x should not be written. */ + flip_screen_x = 0; } static void draw_bullets(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |