mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-12 00:24:39 +00:00
Scrollbars.
Image position starting at point [0,0]. Clearing shape outline cache.
This commit is contained in:
@@ -265,6 +265,7 @@ public abstract class ShapeTag extends DrawableTag implements LazyObject {
|
||||
}
|
||||
|
||||
public void updateBounds() {
|
||||
shapes.clearCachedOutline();
|
||||
shapeBounds = SHAPERECORD.getBounds(shapes.shapeRecords, shapes.lineStyles, getShapeNum(), false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,10 @@ public class SHAPE implements NeedsCharacters, Serializable {
|
||||
return SHAPERECORD.getBounds(shapeRecords, null, 1, true);
|
||||
}
|
||||
|
||||
public void clearCachedOutline() {
|
||||
cachedOutline = null;
|
||||
}
|
||||
|
||||
public Shape getOutline(int shapeNum, SWF swf, boolean stroked) {
|
||||
if (cachedOutline != null) {
|
||||
return cachedOutline;
|
||||
|
||||
Reference in New Issue
Block a user