mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-05 11:34:57 +00:00
morphshapefix
This commit is contained in:
@@ -157,10 +157,7 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
|
||||
if (drawable == null) {
|
||||
return 0;
|
||||
}
|
||||
int ret = (int) Math.ceil(percent * drawable.getNumFrames() / 100.0);
|
||||
if (ret == 0) {
|
||||
ret = 1;
|
||||
}
|
||||
int ret = percent * (drawable.getNumFrames() - 1) / 100;
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -184,7 +181,7 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
|
||||
if (drawable == null) {
|
||||
return;
|
||||
}
|
||||
int nframe = percent * drawable.getNumFrames() / 100;
|
||||
int nframe = percent * (drawable.getNumFrames() - 1) / 100;
|
||||
if (nframe != frame) {
|
||||
Matrix mat = new Matrix();
|
||||
mat.translateX = swf.displayRect.Xmin;
|
||||
|
||||
Reference in New Issue
Block a user