Merge pull request #5879 from Kamielvf/regen-meter-stroke

Change regen meter stroke end-cap style to CAP_BUTT
This commit is contained in:
Tomas Slusny
2018-10-09 07:54:57 +02:00
committed by GitHub

View File

@@ -112,8 +112,8 @@ public class RegenMeterOverlay extends Overlay
}
Rectangle bounds = widget.getBounds();
Arc2D.Double arc = new Arc2D.Double(bounds.x + OFFSET, bounds.y + (bounds.height / 2 - DIAMETER / 2), DIAMETER, DIAMETER, 88.d, -360.d * percent, Arc2D.OPEN);
final Stroke STROKE = new BasicStroke(2f);
Arc2D.Double arc = new Arc2D.Double(bounds.x + OFFSET, bounds.y + (bounds.height / 2 - DIAMETER / 2), DIAMETER, DIAMETER, 90.d, -360.d * percent, Arc2D.OPEN);
final Stroke STROKE = new BasicStroke(2f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER);
g.setStroke(STROKE);
g.setColor(color);
g.draw(arc);