summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cit101.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cit101.cpp')
-rw-r--r--src/mame/drivers/cit101.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/cit101.cpp b/src/mame/drivers/cit101.cpp
index b5fdfd19de5..1dd1b0709da 100644
--- a/src/mame/drivers/cit101.cpp
+++ b/src/mame/drivers/cit101.cpp
@@ -137,8 +137,8 @@ void cit101_state::draw_line(uint32_t *pixptr, int minx, int maxx, int line, boo
u8 char_data = m_chargen[(m_mainram[rowaddr] << 4) | line];
if (last_line && BIT(attr, 0))
char_data ^= 0xff;
- rgb_t on_color = BIT(attr, 1) ? rgb_t::black() : rgb_t::white();
- rgb_t off_color = BIT(attr, 1) ? rgb_t::white() : rgb_t::black();
+ rgb_t on_color = (BIT(attr, 1) != BIT(scrattr, 0)) ? rgb_t::black() : rgb_t::white();
+ rgb_t off_color = (BIT(attr, 1) != BIT(scrattr, 0)) ? rgb_t::white() : rgb_t::black();
if (BIT(attr, 3) && m_blink)
on_color = rgb_t(0xc0, 0xc0, 0xc0);
bool last_bit = false;
@@ -162,8 +162,8 @@ void cit101_state::draw_line(uint32_t *pixptr, int minx, int maxx, int line, boo
char_data = m_chargen[(m_mainram[rowaddr] << 4) | line];
if (last_line && BIT(attr, 0))
char_data ^= 0xff;
- on_color = BIT(attr, 1) ? rgb_t::black() : rgb_t::white();
- off_color = BIT(attr, 1) ? rgb_t::white() : rgb_t::black();
+ on_color = (BIT(attr, 1) != BIT(scrattr, 0)) ? rgb_t::black() : rgb_t::white();
+ off_color = (BIT(attr, 1) != BIT(scrattr, 0)) ? rgb_t::white() : rgb_t::black();
if (BIT(attr, 3) && m_blink)
on_color = rgb_t(0xc0, 0xc0, 0xc0);
last_bit = false;