diff options
| author | 2021-05-28 18:42:25 -0500 | |
|---|---|---|
| committer | 2021-05-28 18:42:25 -0500 | |
| commit | 050db64a961203600c71a9671bbebb2a5a0b1999 (patch) | |
| tree | 1a553bc466e1d8d3809ec215b69247bc7d686b9f | |
| parent | daf27a573e5141f42561c9f33b2f94fa431f2a99 (diff) | |
x68k: fill screen with color 0 if pcg disabled and make text color 0 transparent again
| -rw-r--r-- | src/mame/video/x68k.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/x68k.cpp b/src/mame/video/x68k.cpp index 484292d9748..07f8e8579b8 100644 --- a/src/mame/video/x68k.cpp +++ b/src/mame/video/x68k.cpp @@ -221,7 +221,7 @@ void x68k_state::draw_text(bitmap_rgb32 &bitmap, int xscr, int yscr, rectangle r + (((m_tvram[loc+0x20000] >> bit) & 0x01) ? 4 : 0) + (((m_tvram[loc+0x30000] >> bit) & 0x01) ? 8 : 0); // Colour 0 is displayable if the text layer is at the priority level 2 - if((m_pcgpalette->pen(colour) & 0xffffff) || ((m_video.reg[1] & 0x0c00) == 0x0800)) + if((colour && (m_pcgpalette->pen(colour) & 0xffffff)) || ((m_video.reg[1] & 0x0c00) == 0x0800)) bitmap.pix(line, pixel) = m_pcgpalette->pen(colour); bit--; if(bit < 0) @@ -747,7 +747,7 @@ uint32_t x68k_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, } } else - bitmap.fill(0, rect); // possibly fill with m_pcgpalette->pen(0) + bitmap.fill(m_pcgpalette->pen(0), rect); for(priority=2;priority>=0;priority--) { |
