mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
advision,skywriter: fix cliprect bounds check
This commit is contained in:
parent
320c8283d2
commit
13b23aac37
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user