sknsspr: fix sign overflow

This commit is contained in:
hap 2022-08-26 12:13:04 +02:00
parent e4efa7eec9
commit e4f8802192

View file

@ -88,9 +88,9 @@ void sknsspr_device::skns_sprite_kludge(int x, int y)
u32 zxd = 0x10000-(zx_s); \
u32 zys = 0x10000-(zy_m); \
u32 zyd = 0x10000-(zy_s); \
int xs, ys, xd, yd, old, old2; \
u32 bxs = 0, bys = 0, xs, ys; \
int xd, yd, old, old2; \
int step_spr = step; \
int bxs = 0, bys = 0; \
rectangle clip; \
clip.min_x = cliprect.min_x<<16; \
clip.max_x = (cliprect.max_x+1)<<16; \