morphshape rendering fix (but still wrong)

This commit is contained in:
Honfika
2014-01-29 23:47:11 +01:00
parent 59b1327a72
commit ed05bf3cf1
9 changed files with 132 additions and 81 deletions

View File

@@ -47,7 +47,7 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
public DrawableTag drawable;
private Timer timer;
private int percent;
private int frame;
private int frame = -1;
private SWF swf;
private HashMap<Integer, CharacterTag> characters;
private int frameRate;
@@ -195,6 +195,7 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
mat.translate(img.bounds.getMinX(), img.bounds.getMinY());
ImageIcon icon = new ImageIcon(img.getBufferedImage());
label.setIcon(icon);
frame = nframe;
}
}