mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
toprollr: add safety cliprect mask
This commit is contained in:
parent
c5da18f24b
commit
f469b1d143
@ -778,6 +778,7 @@ uint32_t cclimber_state::screen_update_toprollr(screen_device &screen, bitmap_in
|
||||
rectangle scroll_area_clip = cliprect;
|
||||
scroll_area_clip.min_x = (m_flip_x ? 3 : 5) * 8;
|
||||
scroll_area_clip.max_x = (m_flip_x ? 27 : 29) * 8 - 1;
|
||||
scroll_area_clip &= cliprect;
|
||||
|
||||
bitmap.fill(CCLIMBER_BG_PEN, cliprect);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user