From c237ae53e6184ea313f17acccf463cfc1477a189 Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Wed, 18 Oct 2023 02:23:16 +0200 Subject: [PATCH] argh --- MareSynchronos/UI/CompactUI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MareSynchronos/UI/CompactUI.cs b/MareSynchronos/UI/CompactUI.cs index 4a27a18..ebcef03 100644 --- a/MareSynchronos/UI/CompactUI.cs +++ b/MareSynchronos/UI/CompactUI.cs @@ -103,10 +103,10 @@ public class CompactUi : WindowMediatorSubscriberBase { var ver = _apiController.CurrentClientVersion; var unsupported = "UNSUPPORTED VERSION"; - var uidTextSize = ImGui.CalcTextSize(unsupported); - ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2); using (ImRaii.PushFont(_uiShared.UidFont, _uiShared.UidFontBuilt)) { + var uidTextSize = ImGui.CalcTextSize(unsupported); + ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2); ImGui.AlignTextToFramePadding(); ImGui.TextColored(ImGuiColors.DalamudRed, unsupported); }