summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2021-09-02 23:48:17 +0200
committer hap <happppp@users.noreply.github.com>2021-09-02 23:48:31 +0200
commitd7ae941798bedefd9f1e2bf858e193cb4d958e78 (patch)
tree5a5e710783180224fe5fc0cd172ce7f65b4b629e /src/mame/video
parent3aaa9551141b221bcfb2d814aba574a2c8768048 (diff)
n8080: add conf setting for switching spacefev to monochrome
Diffstat (limited to 'src/mame/video')
-rw-r--r--src/mame/video/n8080.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mame/video/n8080.cpp b/src/mame/video/n8080.cpp
index c80fb805e07..b8e16bf5cf8 100644
--- a/src/mame/video/n8080.cpp
+++ b/src/mame/video/n8080.cpp
@@ -126,6 +126,7 @@ void helifire_state::video_start()
uint32_t spacefev_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
+ const bool mono = bool(m_video_conf->read());
uint8_t mask = flip_screen() ? 0xff : 0x00;
uint8_t const *pRAM = m_videoram;
@@ -176,6 +177,9 @@ uint32_t spacefev_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
}
}
+ if (mono)
+ color = 7; // force B&W here
+
for (int n = 0; n < 8; n++)
{
pLine[(x + n) ^ mask] = (pRAM[x >> 3] & (1 << n)) ? color : 0;