Refreshing shape/frame cache after image replace

formatting
This commit is contained in:
Jindra Petk
2013-07-07 08:39:25 +02:00
parent 77628bf739
commit 3b0754021e
12 changed files with 30 additions and 20 deletions

View File

@@ -92,6 +92,7 @@ import com.jpexs.decompiler.flash.types.RECT;
import com.jpexs.decompiler.flash.types.filters.BlendComposite;
import com.jpexs.decompiler.flash.types.filters.FILTER;
import com.jpexs.decompiler.flash.types.filters.Filtering;
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
import com.jpexs.decompiler.flash.types.sound.AdpcmDecoder;
import com.jpexs.decompiler.flash.xfl.XFLConverter;
import java.awt.AlphaComposite;
@@ -1899,6 +1900,11 @@ public class SWF {
}
private static Cache cache = new Cache(false);
public void clearImageCache() {
cache.clear();
SHAPERECORD.clearShapeCache();
}
public static RECT fixRect(RECT rect) {
RECT ret = new RECT();
ret.Xmin = rect.Xmin;