mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Use the real addon size after scale changes
This commit is contained in:
parent
066ab30acc
commit
6cc6e539ce
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue