Ver Fonte

setFillColor of CanvasRenderingContext2D is webkit specific, so change to fillStyle

Ivan Tivonenko há 11 anos atrás
pai
commit
bf37cd3656
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      hxd/BitmapData.hx

+ 1 - 1
hxd/BitmapData.hx

@@ -50,7 +50,7 @@ abstract BitmapData(InnerData) {
 		r.height = height;
 		this.fillRect(r, color);
 		#else
-		this.setFillColor(((color>>16)&0xFF)/255,((color>>8)&0xFF)/255,(color&0xFF)/255,(color>>>24)/255);
+		this.fillStyle = 'rgba(${(color>>16)&0xFF}, ${(color>>8)&0xFF}, ${color&0xFF}, ${(color>>>24)/255})';
 		this.fillRect(x, y, width, height);
 		#end
 	}