Fixed Slow zooming/redrawing on action when SWF has low framerate

This commit is contained in:
Jindra Petřík
2022-10-23 12:16:35 +02:00
parent bfae9f6871
commit 98fd92b068
2 changed files with 9 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
- [#1839] Sprite frames exported incorrectly and repeating
- [#1838] AS3 - Properly handling of long unsigned values, hex values, default uint values etc.
- [#1847] shape viewer and PDF exporter - correct drawing of pure vertical/horizontal shapes (zero width/height)
- Slow zooming/redrawing on action when SWF has low framerate
### Changed
- AS3 integer values are internally (e.g. in the lib) handled as java int type instead of long.

View File

@@ -1399,8 +1399,14 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
}
private synchronized void redraw() {
if (timer == null && timelined != null) {
final Timer thisTimer = timer;
if (timelined == null) {
return;
}
if (thisTimer == null) {
startTimer(timelined.getTimeline(), false);
} else {
drawFrame(thisTimer, true);
}
}
@@ -2207,7 +2213,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
first = false;
CharacterTag c = swf.getCharacter(ds.characterId);
ret.append(c.toString());
if(ds.depth > 0) {
if (ds.depth > 0) {
ret.append(" ");
ret.append(AppStrings.translate("imagePanel.depth"));
ret.append(" ");