#752 Sound is not stopped when you change the selectin in he tag tree from SWF to e.g any shape fixed

This commit is contained in:
honfika@gmail.com
2014-12-15 22:33:13 +01:00
parent 9ea4f6c6b7
commit 5f4214dffd
5 changed files with 228 additions and 318 deletions

View File

@@ -334,6 +334,9 @@ public class PlayerControls extends JPanel implements ActionListener {
frameControls.setVisible(display.screenAvailable());
int totalFrames = display.getTotalFrames();
int currentFrame = display.getCurrentFrame();
if (currentFrame >= totalFrames) {
currentFrame = totalFrames - 1;
}
int frameRate = display.getFrameRate();
if (totalFrames == 0) {
progress.setIndeterminate(true);