mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 05:21:09 +00:00
updateTextBounds fix
This commit is contained in:
@@ -31,6 +31,7 @@ import com.jpexs.decompiler.flash.timeline.DepthState;
|
||||
import com.jpexs.decompiler.flash.timeline.Timeline;
|
||||
import com.jpexs.decompiler.flash.timeline.Timelined;
|
||||
import com.jpexs.decompiler.flash.types.ColorTransform;
|
||||
import com.jpexs.decompiler.flash.types.ConstantColorColorTransform;
|
||||
import com.jpexs.decompiler.flash.types.RECT;
|
||||
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
|
||||
import com.jpexs.helpers.SerializableImage;
|
||||
@@ -562,22 +563,10 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
Matrix m = new Matrix();
|
||||
m.translate(-rect.Xmin * zoomDouble, -rect.Ymin * zoomDouble);
|
||||
m.scale(zoomDouble);
|
||||
textTag.toImage(0, 0, 0, null, 0, image, m, new ColorTransform() {
|
||||
|
||||
@Override
|
||||
public int apply(int color) {
|
||||
return 0xFFC0C0C0;
|
||||
}
|
||||
});
|
||||
textTag.toImage(0, 0, 0, null, 0, image, m, new ConstantColorColorTransform(0xFFC0C0C0));
|
||||
|
||||
if (newTextTag != null) {
|
||||
newTextTag.toImage(0, 0, 0, null, 0, image, m, new ColorTransform() {
|
||||
|
||||
@Override
|
||||
public int apply(int color) {
|
||||
return 0xFF000000;
|
||||
}
|
||||
});
|
||||
newTextTag.toImage(0, 0, 0, null, 0, image, m, new ConstantColorColorTransform(0xFF000000));
|
||||
}
|
||||
|
||||
iconPanel.setImg(image);
|
||||
|
||||
@@ -481,9 +481,6 @@ public class Main {
|
||||
|
||||
public static boolean reloadSWFs() {
|
||||
CancellableWorker.cancelBackgroundThreads();
|
||||
if (mainFrame != null) {
|
||||
mainFrame.getPanel().closeAll();
|
||||
}
|
||||
if (Main.sourceInfos.isEmpty()) {
|
||||
Helper.freeMem();
|
||||
showModeFrame();
|
||||
@@ -520,6 +517,7 @@ public class Main {
|
||||
}
|
||||
if (mainFrame != null) {
|
||||
mainFrame.setVisible(false);
|
||||
mainFrame.getPanel().closeAll();
|
||||
mainFrame = null;
|
||||
}
|
||||
FontTag.reload();
|
||||
|
||||
@@ -664,6 +664,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
if (actionPanel != null) {
|
||||
actionPanel.clearSource();
|
||||
}
|
||||
previewPanel.clear();
|
||||
updateUi();
|
||||
refreshTree();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user