Browse Source

fix for haxe 3.2

Nicolas Cannasse 10 năm trước cách đây
mục cha
commit
1698e6303f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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