From 3944268fe48a76293ecc4820616cc87fff8caacc Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 5 Dec 2025 15:53:35 +0100 Subject: [PATCH] Fix shuttle FTL with UI scale (#40933) Fixed click inputs being broken Fixed rendering of background parallax. --- Content.Client/Shuttles/UI/ShuttleMapControl.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Shuttles/UI/ShuttleMapControl.xaml.cs b/Content.Client/Shuttles/UI/ShuttleMapControl.xaml.cs index 70ac02bda9..daf2622d81 100644 --- a/Content.Client/Shuttles/UI/ShuttleMapControl.xaml.cs +++ b/Content.Client/Shuttles/UI/ShuttleMapControl.xaml.cs @@ -124,7 +124,7 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl else { // We'll send the "adjusted" position and server will adjust it back when relevant. - var mapCoords = new MapCoordinates(InverseMapPosition(args.RelativePosition), ViewingMap); + var mapCoords = new MapCoordinates(InverseMapPosition(args.RelativePixelPosition), ViewingMap); RequestFTL?.Invoke(mapCoords, _ftlAngle); } } @@ -180,7 +180,7 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl // Remove offset so we can floor. var botLeft = new Vector2(0f, 0f); - var topRight = botLeft + Size; + var topRight = botLeft + PixelSize; var flooredBL = botLeft - originBL; -- 2.52.0