From a5190582f25bdcb7e4d072d62298d99b3ff125e2 Mon Sep 17 00:00:00 2001 From: Whatstone Date: Sat, 18 Jan 2025 17:09:39 -0500 Subject: [PATCH] ShuttleNavControl: include UIScaling in IFF draw --- Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs b/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs index f28bab55f46..2348ac2fa0c 100644 --- a/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs +++ b/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs @@ -265,7 +265,7 @@ protected override void Draw(DrawingHandleScreen handle) // The actual position in the UI. We offset the matrix position to render it off by half its width // plus by the offset. //var uiPosition = ScalePosition(gridCentre) / UIScale; - var uiPosition = Vector2.Transform(gridBody.LocalCenter, curGridToView); + var uiPosition = Vector2.Transform(gridBody.LocalCenter, curGridToView) / UIScale; // Confines the UI position within the viewport. var uiXCentre = (int) Width / 2;