sknsspr: don't draw outside the cliprect

This commit is contained in:
hap 2022-08-25 21:34:17 +02:00
parent 695a9eb091
commit 43e74c683f

View file

@ -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; \