mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 10:43:29 +00:00
use the same twips/pixel constant everywhere
This commit is contained in:
@@ -124,7 +124,7 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
|
||||
Matrix mat = new Matrix();
|
||||
mat.translateX = swf.displayRect.Xmin;
|
||||
mat.translateY = swf.displayRect.Ymin;
|
||||
SerializableImage img = drawable.toImage(0, swf.tags, characters, new Stack<Integer>());
|
||||
SerializableImage img = drawable.toImage(0, swf.tags, characters, new Stack<Integer>(), Matrix.getScaleInstance(1 / SWF.unitDivisor));
|
||||
mat.translate(img.bounds.getMinX(), img.bounds.getMinY());
|
||||
setImage(img);
|
||||
return;
|
||||
@@ -180,7 +180,7 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
|
||||
Matrix mat = new Matrix();
|
||||
mat.translateX = swf.displayRect.Xmin;
|
||||
mat.translateY = swf.displayRect.Ymin;
|
||||
SerializableImage img = drawable.toImage(nframe, swf.tags, characters, new Stack<Integer>());
|
||||
SerializableImage img = drawable.toImage(nframe, swf.tags, characters, new Stack<Integer>(), Matrix.getScaleInstance(1 / SWF.unitDivisor));
|
||||
mat.translate(img.bounds.getMinX(), img.bounds.getMinY());
|
||||
ImageIcon icon = new ImageIcon(img.getBufferedImage());
|
||||
label.setIcon(icon);
|
||||
|
||||
Reference in New Issue
Block a user