Commit 9dccc0ab authored by Valérie Maquil's avatar Valérie Maquil

gauges origin set to top left corner again

parent 6cdd07ad
Pipeline #610 skipped
......@@ -168,7 +168,6 @@ public class Gauge extends Corona implements InformationReceiver<Double> {
return;
Graphics2D offscreen = rendered.createGraphics();
// TODO: should this be set to -width and -height?
gauge.setLocation(0, 0);
gauge.paint(offscreen);
......@@ -178,7 +177,7 @@ public class Gauge extends Corona implements InformationReceiver<Double> {
Point drawAt = centre.add(initialTranslation);
AffineTransform rotation = new AffineTransform();
rotation.translate(drawAt.x - width / 2, drawAt.y - height / 2);
rotation.translate(drawAt.x, drawAt.y);
if (this.isStatic()) {
rotation.rotate(drawAt.getAngle(), -initialTranslation.x, -initialTranslation.y);
......
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