Scrollbars.

Image position starting at point [0,0].
Clearing shape outline cache.
This commit is contained in:
Jindra Petřík
2022-12-30 23:59:00 +01:00
parent 74a8d963f3
commit 6159f3fa2c
4 changed files with 262 additions and 20 deletions

View File

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

View File

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