diff --git a/Content.Client/Hands/ShowHandItemOverlay.cs b/Content.Client/Hands/ShowHandItemOverlay.cs index 46cfb13ceb..2b6aab2fc1 100644 --- a/Content.Client/Hands/ShowHandItemOverlay.cs +++ b/Content.Client/Hands/ShowHandItemOverlay.cs @@ -1,7 +1,7 @@ using Content.Shared.CCVar; using Robust.Client.Graphics; using Robust.Client.Input; -using Robust.Shared; +using Robust.Client.UserInterface; using Robust.Shared.Configuration; using Robust.Shared.Enums; using Robust.Shared.GameObjects; @@ -51,9 +51,11 @@ namespace Content.Client.Hands var screen = args.ScreenHandle; var halfSize = _renderBackbuffer.Size / 2; + var uiScale = (args.ViewportControl as Control)?.UIScale ?? 1f; + screen.RenderInRenderTarget(_renderBackbuffer, () => { - screen.DrawEntity(handEntity, halfSize, new Vector2(1f, 1f) * _cfg.GetCVar(CVars.DisplayUIScale), Direction.South); + screen.DrawEntity(handEntity, halfSize, new Vector2(1f, 1f) * uiScale, Direction.South); }, Color.Transparent); var offset = _cfg.GetCVar(CCVars.HudHeldItemOffset);