jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Lua: getbackuppixel doesn't work after image resize #377

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The function relies on the new width and height to clip and find the pixels, so 
it can even crash if the new size is bigger.

Original issue reported on code.google.com by yrizoud on 2 Sep 2010 at 8:03

GoogleCodeExporter commented 9 years ago
Fixed in r1611.
Note that setpicturesize() now copies the pixels from the original backup 
(before the script), and no matter how many times you call setpicturesize() 
during a script, the whole script will count as one Undo/Redo step.

Original comment by yrizoud on 12 Sep 2010 at 5:19