advision,skywriter: fix cliprect bounds check

This commit is contained in:
hap 2023-10-20 17:26:57 +02:00
parent 320c8283d2
commit 13b23aac37
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ u32 advision_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, c
for (int i = 0; i < led_height; i++)
{
if (cliprect.contains(x, dy))
if (cliprect.contains(x, dy + i))
bitmap.pix(dy + i, x) = red << 16 | green << 8 | blue;
}
}

View File

@ -7499,7 +7499,7 @@ u32 skywriter_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap,
for (int j = 0; j < 3; j++)
{
if (cliprect.contains(dx, dy))
if (cliprect.contains(dx, dy + j))
bitmap.pix(dy + j, dx) = red << 16 | green << 8 | blue;
}