mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
clamping pen access in gameplan_state::screen_update_leprechn() (nw)
This commit is contained in:
parent
0bdd808256
commit
b111c77251
@ -125,7 +125,7 @@ UINT32 gameplan_state::screen_update_leprechn(screen_device &screen, bitmap_rgb3
|
||||
UINT8 y = offs >> 8;
|
||||
UINT8 x = offs & 0xff;
|
||||
|
||||
bitmap.pix32(y, x) = pens[m_videoram[offs]];
|
||||
bitmap.pix32(y, x) = pens[m_videoram[offs] & (LEPRECHN_NUM_PENS-1)];
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user