Fixed: Drawing points and shape paths highlighting did not respect UI scale factor

This commit is contained in:
Jindra Petřík
2025-04-18 16:40:10 +02:00
parent 8a273e75d9
commit 111ec21208
2 changed files with 2 additions and 1 deletions

View File

@@ -928,7 +928,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
trans.scale(1 / SWF.unitDivisor, 1 / SWF.unitDivisor);
trans.scale(zoomDouble, zoomDouble);
AffineTransform oldTransform = g2.getTransform();
g2.setTransform(trans);
g2.transform(trans);
if (hilightedEdge != null) {
g2.setStroke(new BasicStroke((float) (SWF.unitDivisor * 6 / zoomDouble)));