summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author JOTEGO <jose.tejada@jotego.es>2024-01-15 10:47:39 +0100
committer GitHub <noreply@github.com>2024-01-15 10:47:39 +0100
commita65533ade9b88a99c7dfdeb30bc1634e13ffb869 (patch)
tree50a74109eea57ac912867403636027d09c9f65de
parent0f0b8023261b50d16d4b3c1a69d9367f09c63a1a (diff)
higemaru: Add tile x/y flip, fixes hi-score screen (#11936)
-rw-r--r--src/mame/capcom/higemaru.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/capcom/higemaru.cpp b/src/mame/capcom/higemaru.cpp
index 78ee42edfa5..e3d97975a04 100644
--- a/src/mame/capcom/higemaru.cpp
+++ b/src/mame/capcom/higemaru.cpp
@@ -168,10 +168,10 @@ void higemaru_state::c800_w(uint8_t data)
TILE_GET_INFO_MEMBER(higemaru_state::get_bg_tile_info)
{
- int const code = m_videoram[tile_index] + ((m_colorram[tile_index] & 0x80) << 1);
- int const color = m_colorram[tile_index] & 0x1f;
+ int const attr = m_colorram[tile_index];
+ int const code = m_videoram[tile_index] | ((attr & 0x80) << 1);
- tileinfo.set(0, code, color, 0);
+ tileinfo.set(0, code, attr & 0x1f, TILE_FLIPYX((attr & 0x60) >> 5));
}
void higemaru_state::video_start()