pc9801_v: fix explicit tile lr

upd7220: stop drawing if active lines is reached
This commit is contained in:
cracyc 2024-10-22 15:30:05 -05:00
parent 6a28bbbd53
commit 522948ccbb
2 changed files with 3 additions and 3 deletions

View File

@ -1843,7 +1843,7 @@ void upd7220_device::update_graphics(bitmap_rgb32 &bitmap, const rectangle &clip
for(int z = 0; z <= m_disp; ++z)
{
int yval = (y*zoom)+z + (bsy + m_vbp);
if(yval <= cliprect.bottom())
if(yval <= cliprect.bottom() && (yval - m_vbp) < m_al)
draw_graphics_line(bitmap, addr, yval, wd, mixed);
}
}

View File

@ -125,7 +125,7 @@ void pc9801_state::draw_text(bitmap_rgb32 &bitmap, uint32_t addr, int y, int wd,
kanji_sel = 1;
if((tile & 0x7e00) == 0x5600)
{
if(lasttile == tile)
if(lasttile == (tile | knj_tile))
{
tile_lr = 1;
lasttile = -1;
@ -142,7 +142,7 @@ void pc9801_state::draw_text(bitmap_rgb32 &bitmap, uint32_t addr, int y, int wd,
}
else
x_step = 1;
lasttile = tile;
lasttile = (tile | knj_tile);
for(kanji_lr=0;kanji_lr<x_step;kanji_lr++)
{