fix put_BrushGradient

removed access to properties whose names were collapsed
This commit is contained in:
Kulikova Svetlana
2021-03-04 09:27:26 +03:00
parent 2eaf28051a
commit 2415a562f7

View File

@ -660,7 +660,15 @@ CNativeGraphics.prototype =
},
put_BrushGradient : function(gradFill, points, transparent)
{
this.Native["put_BrushGradient"](gradFill.colors, transparent, points.x0, points.y0, points.x1, points.y1, points.r0, points.r1);
var colors = new Array(gradFill.colors.length * 5);
for (var i = 0; i < gradFill.colors.length; i++) {
colors[i * 5] = gradFill.colors[i].pos;
colors[i * 5 + 1] = gradFill.colors[i].color.RGBA.R;
colors[i * 5 + 2] = gradFill.colors[i].color.RGBA.G;
colors[i * 5 + 3] = gradFill.colors[i].color.RGBA.B;
colors[i * 5 + 4] = gradFill.colors[i].color.RGBA.A;
}
this.Native["put_BrushGradient"](colors, transparent, points.x0, points.y0, points.x1, points.y1, points.r0, points.r1);
},
TransformPointX : function(x, y)
{