mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 23:21:36 +00:00
scaling grid is clipped to maximum of SWF bounds, not Integer.MAX_VALUE
This commit is contained in:
@@ -962,8 +962,6 @@ public class Timeline {
|
||||
for (int sx = 0; sx < 3; sx++) {
|
||||
g.setTransform(new AffineTransform());
|
||||
ExportRectangle p1 = transformation.transform(targetRect[s]);
|
||||
g.setClip(c);
|
||||
|
||||
if (sx == 0) {
|
||||
p1.xMin = 0;
|
||||
}
|
||||
@@ -972,10 +970,10 @@ public class Timeline {
|
||||
}
|
||||
|
||||
if (sx == 2) {
|
||||
p1.xMax = Integer.MAX_VALUE;
|
||||
p1.xMax = unzoom * swf.getRect().getWidth() / SWF.unitDivisor;
|
||||
}
|
||||
if (sy == 2) {
|
||||
p1.yMax = Integer.MAX_VALUE;
|
||||
p1.yMax = unzoom * swf.getRect().getHeight() / SWF.unitDivisor;
|
||||
}
|
||||
|
||||
Rectangle2D r = new Rectangle2D.Double(p1.xMin, p1.yMin, p1.getWidth(), p1.getHeight());
|
||||
|
||||
Reference in New Issue
Block a user