flash player zoom fix, html5 export fixed when framerate=0

This commit is contained in:
honfika@gmail.com
2014-12-04 19:27:58 +01:00
parent 9ca752dfca
commit 5d9be4a0da
5 changed files with 25 additions and 10 deletions

View File

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