Fix image.data on HTML5 DOM mode
This commit is contained in:
@@ -37,7 +37,10 @@ class BMP {
|
||||
}
|
||||
|
||||
var data = new ByteArray (fileHeaderLength + infoHeaderLength + pixelValuesLength);
|
||||
|
||||
#if (cpp || neko)
|
||||
data.bigEndian = false;
|
||||
#end
|
||||
|
||||
if (fileHeaderLength > 0) {
|
||||
|
||||
|
||||
@@ -158,15 +158,7 @@ class ImageCanvasUtil {
|
||||
|
||||
// TODO: Better solution?
|
||||
|
||||
if (image.type == CANVAS) {
|
||||
|
||||
buffer.data = cast buffer.__srcImageData.data;
|
||||
|
||||
} else {
|
||||
|
||||
buffer.data = new UInt8Array (buffer.__srcImageData.data);
|
||||
|
||||
}
|
||||
buffer.data = new UInt8Array (buffer.__srcImageData.data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user