Browse Source

fix invalid InnerData

Nicolas Cannasse 11 years ago
parent
commit
959a2e764d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      hxd/BitmapData.hx

+ 1 - 2
hxd/BitmapData.hx

@@ -4,7 +4,7 @@ private typedef InnerData =
 #if (flash||openfl)
 #if (flash||openfl)
 	flash.display.BitmapData
 	flash.display.BitmapData
 #elseif js
 #elseif js
-	js.html.ImageData
+	js.html.CanvasRenderingContext2D
 #else
 #else
 	Int
 	Int
 #end;
 #end;
@@ -275,7 +275,6 @@ abstract BitmapData(InnerData) {
 		b.setPixels(b.rect, flash.utils.ByteArray.fromBytes(pixels.bytes));
 		b.setPixels(b.rect, flash.utils.ByteArray.fromBytes(pixels.bytes));
 		#else
 		#else
 		throw "TODO";
 		throw "TODO";
-		return null;
 		#end
 		#end
 	}
 	}