From 69366958143426db25dc05a075c0e27c1fe38fd0 Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 4 Feb 2022 05:05:52 -0500 Subject: [PATCH] fix: make input respect scale --- ChatTwo/PayloadHandler.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ChatTwo/PayloadHandler.cs b/ChatTwo/PayloadHandler.cs index ef2bfe5..0d99b71 100755 --- a/ChatTwo/PayloadHandler.cs +++ b/ChatTwo/PayloadHandler.cs @@ -98,7 +98,13 @@ internal sealed class PayloadHandler { .Cast() .Select(text => text.Content) .Aggregate(string.Concat); - ImGui.InputTextMultiline("##chat2-copy", ref text, (uint) text.Length, new Vector2(250, 150), ImGuiInputTextFlags.ReadOnly); + ImGui.InputTextMultiline( + "##chat2-copy", + ref text, + (uint) text.Length, + new Vector2(250, 150) * ImGuiHelpers.GlobalScale, + ImGuiInputTextFlags.ReadOnly + ); ImGui.EndMenu(); }