Old 11-26-2016, 09:48 AM   #1
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 1,461
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:
https://github.com/L-B-X/LBXStripper
https://github.com/L-B-X/LBXChaosEngine
lb0 is offline   Reply With Quote
Old 11-26-2016, 01:35 PM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 9,103
Default

Confirmed. Looking into a fix.
schwa is offline   Reply With Quote
Old 11-26-2016, 04:13 PM   #3
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 1,461
Default

Quote:
Originally Posted by schwa View Post
Confirmed. Looking into a fix.
Awesome - thank you.
__________________
Projects - Reascripts - Lua:
https://github.com/L-B-X/LBXStripper
https://github.com/L-B-X/LBXChaosEngine
lb0 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:56 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.