瀏覽代碼

fix for haxe 3.2

Nicolas Cannasse 10 年之前
父節點
當前提交
1698e6303f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/BitmapData.hx

+ 1 - 1
hxd/BitmapData.hx

@@ -345,7 +345,7 @@ class BitmapData {
 				pixels.push(data[i]);
 			#else
 			// starting from Haxe 3.2, bytes are based on native array
-			var pixels = data;
+			var pixels = data.buffer;
 			#end
 		return new Pixels(w, h, haxe.io.Bytes.ofData(pixels), RGBA);
 		#else