Skip to content

Commit 111ec21

Browse files
committed
Fixed: Drawing points and shape paths highlighting did not respect UI scale factor
1 parent 8a273e7 commit 111ec21

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
1717
- [#2418] AS3 - initialization of class static vars in script initializer (Haxe)
1818
- [#2397] DefineScalingGrid - improper scaling on negative Xmin, Ymin
1919
- [#2425] ZIP/SWC reading - "Only DEFLATED entries can have EXT descriptor" message
20+
- Drawing points and shape paths highlighting did not respect UI scale factor
2021

2122
## [22.0.2] - 2025-01-17
2223
### Added

src/com/jpexs/decompiler/flash/gui/ImagePanel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ public void render() {
928928
trans.scale(1 / SWF.unitDivisor, 1 / SWF.unitDivisor);
929929
trans.scale(zoomDouble, zoomDouble);
930930
AffineTransform oldTransform = g2.getTransform();
931-
g2.setTransform(trans);
931+
g2.transform(trans);
932932

933933
if (hilightedEdge != null) {
934934
g2.setStroke(new BasicStroke((float) (SWF.unitDivisor * 6 / zoomDouble)));

0 commit comments

Comments
 (0)