Explorar el Código

setFillColor of CanvasRenderingContext2D is webkit specific, so change to fillStyle

Ivan Tivonenko hace 11 años
padre
commit
bf37cd3656
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 	}