gfx.blit error when scaling image (FIXED)
Hi,
I've found an error that completely kills reaper (ie. bombs out with 'reaper has stopped working')
Easy to reproduce:
I have an 128 frame image strip (vertical stitch) where each frame is 334 pixels high - total graphics strip height is over 40000 pixels.
If the scale remains at 1 - I can blit the graphic to whatever frame I like up to the max 128. So no problems if not scaling.
If I change the scale to anything other than 1 - it will crash if I set the y blit position > 32767 which is the C integer max value (ie. if I choose a frame that starts > 32767 pixels down the image strip).
Looks to me like a bug in the scaling code where it's overloading a number type... ie integer is being used instead of a long value.
Cheers,
Leon.
|