Improve Image clone

This commit is contained in:
Joshua Granick
2015-07-13 16:35:18 -07:00
parent ec34739a85
commit 808d6ffe15
2 changed files with 3 additions and 0 deletions

View File

@@ -158,6 +158,7 @@ class Image {
public function clone ():Image {
var image = new Image (buffer.clone (), offsetX, offsetY, width, height, null, type);
image.dirty = dirty;
return image;
}

View File

@@ -108,6 +108,8 @@ class ImageBuffer {
}
#end
buffer.bitsPerPixel = bitsPerPixel;
buffer.format = format;
buffer.premultiplied = premultiplied;
buffer.transparent = transparent;
return buffer;