Преглед изворни кода

setFillColor of CanvasRenderingContext2D is webkit specific, so change to fillStyle

Ivan Tivonenko пре 11 година
родитељ
комит
bf37cd3656
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 	}