Commit 15980201 authored by GoshaZotov's avatar GoshaZotov

modify af_drawCurrentButton function

parent 6e0fd923
...@@ -12734,18 +12734,14 @@ ...@@ -12734,18 +12734,14 @@
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(); ctx.beginPath();
height = Math.round(height * scaleIndex * scaleFactor); x = x + 1*width_1px/scaleFactor;
var diffY = Math.round(height / 2); var diffY = (height / 2) * scaleFactor;
height = height * scaleIndex*scaleFactor;
for(var i = 0; i < height; i++) for(var i = 0; i < height; i++)
{ {
ctx.ctx.moveTo(x - (i + 1), 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.ctx.lineTo(x + i, y + 0.5 + (height - i) - diffY);
} }
ctx.setStrokeStyle(m_oColor); ctx.setStrokeStyle(m_oColor);
......
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