trunk/src/emu/video/upd7220.c
r241702 | r241703 | |
397 | 397 | rectangle visarea; |
398 | 398 | |
399 | 399 | visarea.min_x = 0; //(m_hs + m_hbp) * 8; |
400 | | visarea.min_y = 0; //m_vs + m_vbp; |
| 400 | visarea.min_y = m_vbp; //m_vs + m_vbp; |
401 | 401 | visarea.max_x = m_aw * horiz_mult - 1;//horiz_pix_total - (m_hfp * 8) - 1; |
402 | | visarea.max_y = m_al * vert_mult - 1;//vert_pix_total - m_vfp - 1; |
| 402 | visarea.max_y = m_al * vert_mult + m_vbp - 1;//vert_pix_total - m_vfp - 1; |
403 | 403 | |
404 | 404 | LOG(("uPD7220 '%s' Screen: %u x %u @ %f Hz\n", tag(), horiz_pix_total, vert_pix_total, 1 / ATTOSECONDS_TO_DOUBLE(refresh))); |
405 | 405 | LOG(("Visible Area: (%u, %u) - (%u, %u)\n", visarea.min_x, visarea.min_y, visarea.max_x, visarea.max_y)); |
r241702 | r241703 | |
1554 | 1554 | addr = sad + (y * m_pitch); |
1555 | 1555 | |
1556 | 1556 | if (!m_draw_text_cb.isnull()) |
1557 | | m_draw_text_cb(bitmap, addr, (y * m_lr), wd, m_pitch, m_lr, m_dc, m_ead); |
| 1557 | m_draw_text_cb(bitmap, addr, (y * m_lr) + m_vbp, wd, m_pitch, m_lr, m_dc, m_ead); |
1558 | 1558 | } |
1559 | 1559 | |
1560 | 1560 | sy = y + 1; |
r241702 | r241703 | |
1572 | 1572 | |
1573 | 1573 | for (sx = 0; sx < 80; sx++) |
1574 | 1574 | { |
1575 | | if((sx << 3) < m_aw * 16 && y < m_al) |
| 1575 | if((sx << 3) < m_aw * 16 && y < (m_al + m_vbp)) |
1576 | 1576 | m_display_cb(bitmap, y, sx << 3, addr); |
1577 | 1577 | |
1578 | 1578 | addr+= wd + 1; |
r241702 | r241703 | |
1613 | 1613 | addr = ((sad << 1) & 0x3ffff) + (y * (m_pitch << (im ? 0 : 1))); |
1614 | 1614 | |
1615 | 1615 | if (!m_display_cb.isnull()) |
1616 | | draw_graphics_line(bitmap, addr, y + (bsy / (mixed ? 1 : m_lr)), wd); |
| 1616 | draw_graphics_line(bitmap, addr, y + ((bsy + m_vbp) / (mixed ? 1 : m_lr)), wd); |
1617 | 1617 | } |
1618 | 1618 | } |
1619 | 1619 | else |
r241702 | r241703 | |
1627 | 1627 | addr = (sad & 0x3ffff) + ((y / m_lr) * m_pitch); |
1628 | 1628 | |
1629 | 1629 | if (!m_draw_text_cb.isnull()) |
1630 | | m_draw_text_cb(bitmap, addr, y + tsy, wd, m_pitch, m_lr, m_dc, m_ead); |
| 1630 | m_draw_text_cb(bitmap, addr, y + tsy + m_vbp, wd, m_pitch, m_lr, m_dc, m_ead); |
1631 | 1631 | } |
1632 | 1632 | } |
1633 | 1633 | } |