summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2020-02-20 21:26:29 -0600
committer cracyc <cracyc@users.noreply.github.com>2020-02-20 21:26:29 -0600
commit1e2e2c66ab1e2030b0ecef7f35b04a7881c00e0f (patch)
treec24f0677d289c1dd8ade48c2529367aabc886ef0
parente5058c3305c741d94eaeec49d484157cf825cbc6 (diff)
peoplepc: screen attributes (nw)
-rw-r--r--src/mame/drivers/peoplepc.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/drivers/peoplepc.cpp b/src/mame/drivers/peoplepc.cpp
index e392228be3b..cbbf889e7d2 100644
--- a/src/mame/drivers/peoplepc.cpp
+++ b/src/mame/drivers/peoplepc.cpp
@@ -105,9 +105,14 @@ MC6845_UPDATE_ROW(peoplepc_state::update_row)
}
else
{
- uint8_t data = m_charram[(m_cvram[(ma + i) & 0x3fff] & 0x7f) * 32 + ra];
+ uint16_t data = m_cvram[(ma + i) & 0x3fff];
+ uint8_t chr = m_charram[(data & 0x7f) * 32 + ra];
+ if(data & 0x1000)
+ chr ^= 0xff;
+ if((data & 0x800) && (ra > 14))
+ chr = 0xff;
for(j = 0; j < 8; j++)
- bitmap.pix32(y, (i * 8) + j) = palette[(data & (1 << j)) ? 1 : 0];
+ bitmap.pix32(y, (i * 8) + j) = palette[(chr & (1 << j)) ? 1 : 0];
}
}
}