Use the real addon size after scale changes

This commit is contained in:
Cara 2020-11-22 19:43:27 +10:30
parent 066ab30acc
commit 6cc6e539ce

View file

@ -19,9 +19,9 @@ namespace Dalamud.Game.Internal.Gui.Addon {
public short X => this.addonStruct.X;
public short Y => this.addonStruct.Y;
public float Scale => this.addonStruct.Scale;
public unsafe float Width => this.addonStruct.RootNode->Width * Scale;
public unsafe float Height => this.addonStruct.RootNode->Height * Scale;
public unsafe ushort Width => this.addonStruct.RootNode->Width;
public unsafe ushort Height => this.addonStruct.RootNode->Height;
public bool Visible => (this.addonStruct.Flags & 0x20) == 0x20;
}
}