Fixed #1839 Sprite frames exported incorrectly and repeating

This commit is contained in:
Jindra Petřík
2022-10-22 12:55:54 +02:00
parent 8290a469c3
commit a410d5afed
2 changed files with 3 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- [#1834] PlaceObject4 tags appear as Unresolved inside of DefineSprite
- [#1839] Sprite frames exported incorrectly and repeating
## [15.1.1] - 2022-07-03
### Added
@@ -2374,6 +2375,7 @@ All notable changes to this project will be documented in this file.
[alpha 8]: https://github.com/jindrapetrik/jpexs-decompiler/compare/alpha7...alpha8
[alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7
[#1834]: https://www.free-decompiler.com/flash/issues/1834
[#1839]: https://www.free-decompiler.com/flash/issues/1839
[#270]: https://www.free-decompiler.com/flash/issues/270
[#1718]: https://www.free-decompiler.com/flash/issues/1718
[#1801]: https://www.free-decompiler.com/flash/issues/1801

View File

@@ -446,7 +446,7 @@ public class FrameExporter {
}
int fframe = fframes.get(pos++);
BufferedImage result = SWF.frameToImageGet(tim, fframe, fframe, null, 0, tim.displayRect, new Matrix(), null, fusesTransparency ? null : fbackgroundColor, settings.zoom).getBufferedImage();
BufferedImage result = SWF.frameToImageGet(tim, fframe, 0, null, 0, tim.displayRect, new Matrix(), null, fusesTransparency ? null : fbackgroundColor, settings.zoom).getBufferedImage();
if (evl != null) {
evl.handleExportedEvent("frame", pos, fframes.size(), tagName);
@@ -588,7 +588,6 @@ public class FrameExporter {
return ret;
}
private static void drawText(float x, float y, Matrix trans, int textColor, Map<Integer, Font> existingFonts, FontTag font, String text, int textHeight, Graphics g) {
int fontId = font.getFontId();
PDFGraphics g2 = (PDFGraphics) g;