mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-03 06:35:41 +00:00
flash player zoom fix, html5 export fixed when framerate=0
This commit is contained in:
@@ -689,6 +689,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
pause();
|
||||
if (timelined != null) {
|
||||
timer = new Timer();
|
||||
int frameRate = 1000 / timelined.getTimeline().frameRate;
|
||||
timer.schedule(new TimerTask() {
|
||||
boolean first = true;
|
||||
|
||||
@@ -704,7 +705,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
nextFrame();
|
||||
}
|
||||
}
|
||||
}, 0, 1000 / timelined.getTimeline().frameRate);
|
||||
}, 0, frameRate == 0 ? Integer.MAX_VALUE : frameRate);
|
||||
} else {
|
||||
drawFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user