Previous 199869 Revisions Next

r33191 Tuesday 4th November, 2014 at 03:31:47 UTC by Carl
upd7220: shift screen down by vbp (nw)
[src/emu/video]upd7220.c

trunk/src/emu/video/upd7220.c
r241702r241703
397397   rectangle visarea;
398398
399399   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;
401401   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;
403403
404404   LOG(("uPD7220 '%s' Screen: %u x %u @ %f Hz\n", tag(), horiz_pix_total, vert_pix_total, 1 / ATTOSECONDS_TO_DOUBLE(refresh)));
405405   LOG(("Visible Area: (%u, %u) - (%u, %u)\n", visarea.min_x, visarea.min_y, visarea.max_x, visarea.max_y));
r241702r241703
15541554         addr = sad + (y * m_pitch);
15551555
15561556         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);
15581558      }
15591559
15601560      sy = y + 1;
r241702r241703
15721572
15731573   for (sx = 0; sx < 80; sx++)
15741574   {
1575      if((sx << 3) < m_aw * 16 && y < m_al)
1575      if((sx << 3) < m_aw * 16 && y < (m_al + m_vbp))
15761576         m_display_cb(bitmap, y, sx << 3, addr);
15771577
15781578      addr+= wd + 1;
r241702r241703
16131613            addr = ((sad << 1) & 0x3ffff) + (y * (m_pitch << (im ? 0 : 1)));
16141614
16151615            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);
16171617         }
16181618      }
16191619      else
r241702r241703
16271627               addr = (sad & 0x3ffff) + ((y / m_lr) * m_pitch);
16281628
16291629               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);
16311631            }
16321632         }
16331633      }


Previous 199869 Revisions Next


© 1997-2024 The MAME Team