mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
added assert in src/mame/video/system1.c (nw)
This commit is contained in:
parent
d3f7ff6bf4
commit
c8a6f1d9c6
@ -514,6 +514,7 @@ void system1_state::video_update_common(screen_device &screen, bitmap_ind16 &bit
|
||||
for (x = cliprect.min_x; x <= cliprect.max_x; x++)
|
||||
{
|
||||
int bgx = ((x - bgxscroll) / 2) & 0x1ff;
|
||||
assert((x / 2) >= 0 && (x / 2) < 256);
|
||||
UINT16 fgpix = fgbase[x / 2];
|
||||
UINT16 bgpix = bgbase[bgx >> 8][bgx & 0xff];
|
||||
UINT16 sprpix = sprbase[x];
|
||||
|
Loading…
Reference in New Issue
Block a user