View Single Post
Old 11-26-2016, 09:48 AM   #1
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,171
Default 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.
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is offline   Reply With Quote