mirror of
https://github.com/holub/mame
synced 2025-04-27 18:53:05 +03:00
copsnrob: fix videoram oob access
This commit is contained in:
parent
e77e77d51c
commit
af440587a3
@ -13,8 +13,7 @@
|
|||||||
uint32_t copsnrob_state::screen_update_copsnrob(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
uint32_t copsnrob_state::screen_update_copsnrob(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||||
{
|
{
|
||||||
/* redrawing the entire display is faster in this case */
|
/* redrawing the entire display is faster in this case */
|
||||||
|
for (int offs = 0; offs < m_videoram.bytes(); offs++)
|
||||||
for (int offs = m_videoram.bytes(); offs >= 0; offs--)
|
|
||||||
{
|
{
|
||||||
int const sx = 31 - (offs % 32);
|
int const sx = 31 - (offs % 32);
|
||||||
int const sy = offs / 32;
|
int const sy = offs / 32;
|
||||||
|
Loading…
Reference in New Issue
Block a user