From 84dbcc7a48b091230ec0d1019b7870446c4f6fda Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 3 Feb 2018 19:26:34 -0500 Subject: decbac06: Fix tilemap flip (nw) --- src/mame/video/decbac06.cpp | 13 +++++++++++++ src/mame/video/decbac06.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mame/video/decbac06.cpp b/src/mame/video/decbac06.cpp index 699d6f13d90..a48b8165d45 100644 --- a/src/mame/video/decbac06.cpp +++ b/src/mame/video/decbac06.cpp @@ -142,6 +142,19 @@ void deco_bac06_device::set_gfx_region_wide(device_t &device, int region8x8, int dev.m_wide = wide; } +void deco_bac06_device::set_flip_screen(bool flip) +{ + if (m_flip_screen != flip) + { + m_flip_screen = flip; + for (int i = 0; i < 3; i++) + { + m_pf8x8_tilemap[i]->set_flip(flip ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); + m_pf16x16_tilemap[i]->set_flip(flip ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); + } + } +} + TILEMAP_MAPPER_MEMBER(deco_bac06_device::tile_shape0_scan) { return (col & 0xf) + ((row & 0xf) << 4) + ((col & 0x1f0) << 4); diff --git a/src/mame/video/decbac06.h b/src/mame/video/decbac06.h index fbab78c0833..64f51dfc266 100644 --- a/src/mame/video/decbac06.h +++ b/src/mame/video/decbac06.h @@ -83,7 +83,7 @@ public: void set_colmask(int data) { m_gfxcolmask = data; } void set_bppmultmask( int mult, int mask ) { m_bppmult = mult; m_bppmask = mask; } // stadium hero has 3bpp tiles - void set_flip_screen(bool flip) { m_flip_screen = flip; } + void set_flip_screen(bool flip); uint8_t m_gfxcolmask; int m_rambank; // external connection? -- cgit v1.2.3