From a86ad04d7fba7781d2c3dd9e7b9c77647e37ad19 Mon Sep 17 00:00:00 2001 From: angelosa Date: Mon, 4 Jun 2018 15:22:51 +0200 Subject: [PATCH] witch.cpp: attempt to fix garbage graphics after a bonus stage in Keirin Ou [David Haywood] --- src/mame/drivers/witch.cpp | 9 +++++++-- 1 file 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)