summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2014-11-02 08:05:24 -0600
committer cracyc <cracyc@users.noreply.github.com>2014-11-02 08:05:24 -0600
commitbbc12cf02989add07b33fbdc8e6b228f3f72ce21 (patch)
tree5e704ebf4692f28356283b17692c2365ba96e01c /src/emu
parent3cd94ce83dafba577adc1a1b53e6414f4681c776 (diff)
(mess) upd7220: so dividing by lr didn't quite work (nw)
--- This works better but it looks too weird to be entirely correct.
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/video/upd7220.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/video/upd7220.c b/src/emu/video/upd7220.c
index d869b16f052..ba6e74176e5 100644
--- a/src/emu/video/upd7220.c
+++ b/src/emu/video/upd7220.c
@@ -1571,6 +1571,7 @@ void upd7220_device::update_graphics(bitmap_rgb32 &bitmap, const rectangle &clip
UINT16 len;
int im, wd, area;
int y = 0, tsy = 0, bsy = 0;
+ bool mixed = ((m_mode & UPD7220_MODE_DISPLAY_MASK) == UPD7220_MODE_DISPLAY_MIXED);
for (area = 0; area < 4; area++)
{
@@ -1592,7 +1593,7 @@ void upd7220_device::update_graphics(bitmap_rgb32 &bitmap, const rectangle &clip
addr = ((sad << 1) & 0x3ffff) + (y * (m_pitch << (im ? 0 : 1)));
if (!m_display_cb.isnull())
- draw_graphics_line(bitmap, addr, y + (bsy / m_lr), wd);
+ draw_graphics_line(bitmap, addr, y + (bsy / (mixed ? 1 : m_lr)), wd);
}
}
else