summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2012-05-01 19:53:11 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2012-05-01 19:53:11 +0000
commit0903edf1b42587b173048a434a174bb9cf98a4c3 (patch)
treecb8333039b9462e2029cf21e2c764c09f6a6fbb9 /src
parent2990be6f351e18860dbeb62ce5d3f656d61897c4 (diff)
Haze: fixed gfx bugs
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/chance32.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mame/drivers/chance32.c b/src/mame/drivers/chance32.c
index 777549ddecc..721508336b4 100644
--- a/src/mame/drivers/chance32.c
+++ b/src/mame/drivers/chance32.c
@@ -53,22 +53,24 @@ static TILE_GET_INFO( get_fg_tile_info )
{
chance32_state *state = machine.driver_data<chance32_state>();
int code = (state->m_fgram[tile_index * 2 + 1] << 8) | state->m_fgram[tile_index * 2];
+ int flip = (~code >> 12)&1;
SET_TILE_INFO(
1,
code & 0x0fff,
- 0,
- 0);
+ code >> 13,
+ TILE_FLIPYX(flip<<1)|flip);
}
static TILE_GET_INFO( get_bg_tile_info )
{
chance32_state *state = machine.driver_data<chance32_state>();
int code = (state->m_bgram[tile_index * 2 +1] << 8) | state->m_bgram[tile_index * 2];
+ int flip = (~code >> 12)&1;
SET_TILE_INFO(
0,
code & 0x0fff,
- 6,
- 0);
+ code >> 13,
+ TILE_FLIPYX(flip<<1|flip));
}