Fix image.data on HTML5 DOM mode

This commit is contained in:
Joshua Granick
2015-01-08 14:23:15 -08:00
parent fdbfb671fe
commit 16de6e0d54
2 changed files with 4 additions and 9 deletions

View File

@@ -37,7 +37,10 @@ class BMP {
}
var data = new ByteArray (fileHeaderLength + infoHeaderLength + pixelValuesLength);
#if (cpp || neko)
data.bigEndian = false;
#end
if (fileHeaderLength > 0) {

View File

@@ -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);
}