From bbc12cf02989add07b33fbdc8e6b228f3f72ce21 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sun, 2 Nov 2014 08:05:24 -0600 Subject: (mess) upd7220: so dividing by lr didn't quite work (nw) --- This works better but it looks too weird to be entirely correct. --- src/emu/video/upd7220.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3