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 |
r18306 | r18307 | |
---|---|---|
506 | 506 | UINT16 *sprbase = &state->m_sprite_bitmap->pix16(y & 0xff); |
507 | 507 | UINT16 *dstbase = &bitmap.pix16(y); |
508 | 508 | int bgy = (y + bgyscroll) & 0x1ff; |
509 | int bgxscroll = bgrowscroll[y | |
509 | int bgxscroll = bgrowscroll[y >> 3 & 0x1f]; | |
510 | 510 | UINT16 *bgbase[2]; |
511 | 511 | |
512 | 512 | /* get the base of the left and right pixmaps for the effective background Y */ |
Previous | 199869 Revisions | Next |