diff options
author | angelosa <salese_corp_ltd@email.it> | 2018-06-04 15:22:51 +0200 |
---|---|---|
committer | angelosa <salese_corp_ltd@email.it> | 2018-06-04 15:25:33 +0200 |
commit | a86ad04d7fba7781d2c3dd9e7b9c77647e37ad19 (patch) | |
tree | 2472b76b3c1174c68372dfdd590a85d70e10aa68 | |
parent | 7d3ec3025544eb93220e798fa631b50748d84a8e (diff) |
witch.cpp: attempt to fix garbage graphics after a bonus stage in Keirin Ou [David Haywood]
-rw-r--r-- | src/mame/drivers/witch.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/drivers/witch.cpp b/src/mame/drivers/witch.cpp index 5e0f6f0181c..ba09586058a 100644 --- a/src/mame/drivers/witch.cpp +++ b/src/mame/drivers/witch.cpp @@ -515,11 +515,16 @@ READ8_MEMBER(witch_state::prot_read_700x) WRITE8_MEMBER(witch_state::xscroll_w) { - m_scrollx=data; + m_scrollx = data; + // need to mark tiles dirty here, as the tilemap writes are affected by scrollx, see FIX_OFFSET macro. + // without it keirin ou can seldomly draw garbage after a big/small bonus game + // TODO: rewrite tilemap code so that it doesn't need FIX_OFFSET at all! + m_gfx1_tilemap->mark_all_dirty(); } + WRITE8_MEMBER(witch_state::yscroll_w) { - m_scrolly=data; + m_scrolly = data; } WRITE8_MEMBER(keirinou_state::palette_w) |