mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
pc9801_v: fix explicit tile lr
upd7220: stop drawing if active lines is reached
This commit is contained in:
parent
6a28bbbd53
commit
522948ccbb
@ -1843,7 +1843,7 @@ void upd7220_device::update_graphics(bitmap_rgb32 &bitmap, const rectangle &clip
|
|||||||
for(int z = 0; z <= m_disp; ++z)
|
for(int z = 0; z <= m_disp; ++z)
|
||||||
{
|
{
|
||||||
int yval = (y*zoom)+z + (bsy + m_vbp);
|
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);
|
draw_graphics_line(bitmap, addr, yval, wd, mixed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ void pc9801_state::draw_text(bitmap_rgb32 &bitmap, uint32_t addr, int y, int wd,
|
|||||||
kanji_sel = 1;
|
kanji_sel = 1;
|
||||||
if((tile & 0x7e00) == 0x5600)
|
if((tile & 0x7e00) == 0x5600)
|
||||||
{
|
{
|
||||||
if(lasttile == tile)
|
if(lasttile == (tile | knj_tile))
|
||||||
{
|
{
|
||||||
tile_lr = 1;
|
tile_lr = 1;
|
||||||
lasttile = -1;
|
lasttile = -1;
|
||||||
@ -142,7 +142,7 @@ void pc9801_state::draw_text(bitmap_rgb32 &bitmap, uint32_t addr, int y, int wd,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
x_step = 1;
|
x_step = 1;
|
||||||
lasttile = tile;
|
lasttile = (tile | knj_tile);
|
||||||
|
|
||||||
for(kanji_lr=0;kanji_lr<x_step;kanji_lr++)
|
for(kanji_lr=0;kanji_lr<x_step;kanji_lr++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user