Commit 15980201 authored by GoshaZotov's avatar GoshaZotov

modify af_drawCurrentButton function

parent 6e0fd923
......@@ -12732,25 +12732,21 @@
ctx.stroke();
};
var _drawFilterDreieck = function (x, y, height)
var _drawFilterDreieck = function (x, y, height)
{
var r = ctx._calcRect(x, y);
x = Math.round(r.x) + 1;
y = Math.round(r.y);
ctx.beginPath();
height = Math.round(height * scaleIndex * scaleFactor);
var diffY = Math.round(height / 2);
x = x + 1*width_1px/scaleFactor;
var diffY = (height / 2) * scaleFactor;
height = height * scaleIndex*scaleFactor;
for(var i = 0; i < height; i++)
{
ctx.ctx.moveTo(x - (i + 1), y + 0.5 + (height - i) - diffY);
ctx.ctx.lineTo(x + i, y + 0.5 + (height - i) - diffY);
ctx.lineHor(x - (i*width_1px/scaleFactor + 1*width_1px/scaleFactor) , y + (height*height_1px - i*height_1px/scaleFactor) - diffY, x + i*width_1px/scaleFactor)
}
ctx.setStrokeStyle(m_oColor);
ctx.stroke();
};
};
//TODO пересмотреть отрисовку кнопок + отрисовку при масштабировании
var _drawButton = function(upLeftXButton, upLeftYButton)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment