From d5e347054b484ef8f7ed8f819bd732b225414133 Mon Sep 17 00:00:00 2001 From: angelosa Date: Thu, 14 Jun 2018 16:28:06 +0200 Subject: [PATCH] ms1_tmap.cpp: initialize VRAM to sane default, fixes ugly back pen shown up in Big Run [Angelo Salese] --- src/mame/video/ms1_tmap.cpp | 10 ++++++++++ src/mame/video/ms1_tmap.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/mame/video/ms1_tmap.cpp b/src/mame/video/ms1_tmap.cpp index 0523e64664c..0d7b25f9d97 100644 --- a/src/mame/video/ms1_tmap.cpp +++ b/src/mame/video/ms1_tmap.cpp @@ -129,6 +129,16 @@ void megasys1_tilemap_device::device_start() save_item(NAME(m_scroll_flag)); } +void megasys1_tilemap_device::device_reset() +{ + // Big Run never sets up scrollram past 0x1000 + // this causes its opaque pen to show up when the game scrolls vertically after a bump. + // we initialize the device VRAM to a sane default so that this doesn't occur. + // TODO: might be something else (smaller VRAM size?) + for(int i=0;i> 4) & 1][m_scroll_flag & 3]; diff --git a/src/mame/video/ms1_tmap.h b/src/mame/video/ms1_tmap.h index a66dea660ac..bfb2a6853fd 100644 --- a/src/mame/video/ms1_tmap.h +++ b/src/mame/video/ms1_tmap.h @@ -66,6 +66,7 @@ public: protected: // device-level overrides virtual void device_start() override; + virtual void device_reset() override; virtual void device_post_load() override; private: