From 6cc6e539ce1c4c6df8a289e1b49fb9ca74331d2d Mon Sep 17 00:00:00 2001 From: Cara Date: Sun, 22 Nov 2020 19:43:27 +1030 Subject: [PATCH] Use the real addon size after scale changes --- Dalamud/Game/Internal/Gui/Addon/Addon.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Game/Internal/Gui/Addon/Addon.cs b/Dalamud/Game/Internal/Gui/Addon/Addon.cs index cb3d9c2a4..0c82f5df6 100644 --- a/Dalamud/Game/Internal/Gui/Addon/Addon.cs +++ b/Dalamud/Game/Internal/Gui/Addon/Addon.cs @@ -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; } }