Explorar o código

fix for haxe 3.2

Nicolas Cannasse %!s(int64=10) %!d(string=hai) anos
pai
achega
1698e6303f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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