From f1fbe4d1ede0a8c1bccf9617f88fa1331e05486f Mon Sep 17 00:00:00 2001 From: Infi Date: Sat, 14 Dec 2024 17:06:13 +0100 Subject: [PATCH] - Use ScaledVector --- ChatTwo/PayloadHandler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ChatTwo/PayloadHandler.cs b/ChatTwo/PayloadHandler.cs index 419082d..39165b1 100755 --- a/ChatTwo/PayloadHandler.cs +++ b/ChatTwo/PayloadHandler.cs @@ -287,7 +287,7 @@ public sealed class PayloadHandler private static void InlineIcon(IDalamudTextureWrap icon) { var cursor = ImGui.GetCursorPos(); - var size = new Vector2(32, 32) * ImGuiHelpers.GlobalScale; + var size = ImGuiHelpers.ScaledVector2(32, 32); ImGui.Image(icon.ImGuiHandle, size); ImGui.SameLine(); ImGui.SetCursorPos(cursor + new Vector2(size.X + 4, size.Y - ImGui.GetTextLineHeightWithSpacing())); @@ -445,7 +445,6 @@ public sealed class PayloadHandler return; var hq = payload.Kind == ItemPayload.ItemKind.Hq; - if (Plugin.TextureProvider.GetFromGameIcon(new GameIconLookup(itemRow.Icon, hq)).GetWrapOrDefault() is { } icon) InlineIcon(icon);