mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
sknsspr: don't draw outside the cliprect
This commit is contained in:
parent
695a9eb091
commit
43e74c683f
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ void sknsspr_device::skns_sprite_kludge(int x, int y)
|
|||
#define z_loop_x() \
|
||||
xs = bxs; \
|
||||
xd = x; \
|
||||
while(xs < sx && xd <= clip.max_x)
|
||||
while(xs < sx && xd < clip.max_x)
|
||||
|
||||
#define z_loop_x_flip() \
|
||||
xs = bxs; \
|
||||
|
@ -148,7 +148,7 @@ void sknsspr_device::skns_sprite_kludge(int x, int y)
|
|||
#define z_loop_y() \
|
||||
ys = bys; \
|
||||
yd = y; \
|
||||
while(ys < sy && yd <= clip.max_y)
|
||||
while(ys < sy && yd < clip.max_y)
|
||||
|
||||
#define z_loop_y_flip() \
|
||||
ys = bys; \
|
||||
|
|
Loading…
Reference in a new issue