use the same twips/pixel constant everywhere

This commit is contained in:
Honfika
2014-01-29 14:54:21 +01:00
parent 3f2adbf8f6
commit 3f8d038549
30 changed files with 194 additions and 166 deletions

View File

@@ -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);