trunk/src/emu/video/upd7220.c
r241651 | r241652 | |
1571 | 1571 | UINT16 len; |
1572 | 1572 | int im, wd, area; |
1573 | 1573 | int y = 0, tsy = 0, bsy = 0; |
| 1574 | bool mixed = ((m_mode & UPD7220_MODE_DISPLAY_MASK) == UPD7220_MODE_DISPLAY_MIXED); |
1574 | 1575 | |
1575 | 1576 | for (area = 0; area < 4; area++) |
1576 | 1577 | { |
r241651 | r241652 | |
1592 | 1593 | addr = ((sad << 1) & 0x3ffff) + (y * (m_pitch << (im ? 0 : 1))); |
1593 | 1594 | |
1594 | 1595 | 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); |
1596 | 1597 | } |
1597 | 1598 | } |
1598 | 1599 | else |