mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 09:15:06 +00:00
TextTag outline fix
This commit is contained in:
@@ -485,6 +485,7 @@ public abstract class TextTag extends CharacterTag implements DrawableTag {
|
||||
@Override
|
||||
public Shape getOutline(int frame, int time, int ratio, DepthState stateUnderCursor, int mouseButton, Matrix transformation) {
|
||||
RECT r = getBounds();
|
||||
return new Rectangle(r.Xmin, r.Ymin, r.getWidth(), r.getHeight()); //TODO: match character shapes
|
||||
Shape shp = new Rectangle.Double(r.Xmin, r.Ymin, r.getWidth(), r.getHeight());
|
||||
return transformation.toTransform().createTransformedShape(shp); //TODO: match character shapes (?)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user