summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2018-02-23 19:50:42 -0600
committer cracyc <cracyc@users.noreply.github.com>2018-02-23 19:50:42 -0600
commit11e249ba8fc45c3a1b49726c0ace47d47dd49cfd (patch)
tree042035ea814a1f3d1a8315e5cab6bee3802aab77
parentb718c5b447e66c778f23ea76a74b4316254ed970 (diff)
duet16: fix graphics (nw)
-rw-r--r--src/mame/drivers/duet16.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/duet16.cpp b/src/mame/drivers/duet16.cpp
index 6cb25b5979b..6fa1526aeb4 100644
--- a/src/mame/drivers/duet16.cpp
+++ b/src/mame/drivers/duet16.cpp
@@ -190,7 +190,7 @@ MC6845_UPDATE_ROW(duet16_state::crtc_update_row)
for(int i = 0; i < x_count; i++)
{
u16 coffset = (ma + i) & 0x07ff;
- u16 goffset = ((coffset * 16) + ra) & 0x7fff;
+ u16 goffset = (((ma * 16) + (ra * 80) + i) & 0x7fff) ^ 1;
u8 g2 = gvram[goffset];
u8 g1 = gvram[goffset + 0x08000];
u8 g0 = gvram[goffset + 0x10000];
@@ -224,7 +224,7 @@ MC6845_UPDATE_ROW(duet16_state::crtc_update_row)
if((data & (0x80 >> xi)) && BIT(m_dispctrl, 1))
color = fg;
else if(BIT(m_dispctrl, 0))
- color = m_pal->pen_color((BIT(g2, xi) << 2) | (BIT(g1, xi) << 1) | BIT(g0, xi));
+ color = m_pal->pen_color((BIT(g2, 7 - xi) << 2) | (BIT(g1, 7 - xi) << 1) | BIT(g0, 7 - xi));
else
color = 0;
bitmap.pix32(y, (i * 8) + xi) = color;