fix: make input respect scale

This commit is contained in:
Anna 2022-02-04 05:05:52 -05:00
parent 4918e41a74
commit 476e492720
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

View File

@ -98,7 +98,13 @@ internal sealed class PayloadHandler {
.Cast<TextChunk>()
.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();
}