Previous 199869 Revisions Next

r33140 Sunday 2nd November, 2014 at 14:05:24 UTC by Carl
(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

trunk/src/emu/video/upd7220.c
r241651r241652
15711571   UINT16 len;
15721572   int im, wd, area;
15731573   int y = 0, tsy = 0, bsy = 0;
1574   bool mixed = ((m_mode & UPD7220_MODE_DISPLAY_MASK) == UPD7220_MODE_DISPLAY_MIXED);
15741575
15751576   for (area = 0; area < 4; area++)
15761577   {
r241651r241652
15921593            addr = ((sad << 1) & 0x3ffff) + (y * (m_pitch << (im ? 0 : 1)));
15931594
15941595            if (!m_display_cb.isnull())
1595               draw_graphics_line(bitmap, addr, y + (bsy / m_lr), wd);
1596               draw_graphics_line(bitmap, addr, y + (bsy / (mixed ? 1 : m_lr)), wd);
15961597         }
15971598      }
15981599      else


Previous 199869 Revisions Next


© 1997-2024 The MAME Team