Compile fix

This commit is contained in:
Joshua Granick
2014-08-03 18:50:05 -07:00
parent b8dfe9235b
commit 5a52509ec3

View File

@@ -458,9 +458,10 @@ class ImageDataUtil {
// TODO: optimize when rect is the same as the buffer size
var data = image.buffer.data;
var offset = Math.round (4 * buffer.width * (rect.y + image.offsetX) + (rect.x + image.offsetY) * 4);
var offset = Math.round (4 * image.buffer.width * (rect.y + image.offsetX) + (rect.x + image.offsetY) * 4);
var pos = offset;
var boundR = Math.round (4 * (rect.x + rect.width + image.offsetX));
var width = image.buffer.width;
for (i in 0...len) {