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

@@ -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;