Previous 199869 Revisions Next

r18307 Saturday 6th October, 2012 at 10:47:57 UTC by hap
fix array out of bounds access
[src/mame/video]system1.c

trunk/src/mame/video/system1.c
r18306r18307
506506      UINT16 *sprbase = &state->m_sprite_bitmap->pix16(y & 0xff);
507507      UINT16 *dstbase = &bitmap.pix16(y);
508508      int bgy = (y + bgyscroll) & 0x1ff;
509      int bgxscroll = bgrowscroll[y / 8];
509      int bgxscroll = bgrowscroll[y >> 3 & 0x1f];
510510      UINT16 *bgbase[2];
511511
512512      /* get the base of the left and right pixmaps for the effective background Y */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team