From 9c86850d707a994de50df6a223d2c601e5bde434 Mon Sep 17 00:00:00 2001 From: nheir Date: Wed, 28 Nov 2018 00:00:56 +0100 Subject: [PATCH] scale down spec view highlight --- src/game/client/components/spectator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/spectator.cpp b/src/game/client/components/spectator.cpp index fdc57f8f5..8dd5f1cad 100644 --- a/src/game/client/components/spectator.cpp +++ b/src/game/client/components/spectator.cpp @@ -349,9 +349,9 @@ void CSpectator::OnRender() if(m_pClient->m_Snap.m_SpecInfo.m_SpecMode == SPEC_PLAYER && m_pClient->m_Snap.m_SpecInfo.m_SpectatorID == i) { Rect.x = Width/2.0f+x-10.0f; - Rect.y = Height/2.0f+y-10.0f; + Rect.y = Height/2.0f+y+10.0f-20.0f*ScaleY; Rect.w = 270.0f; - Rect.h = 60.0f; + Rect.h = 20.0f+40.0f*ScaleY; RenderTools()->DrawRoundRect(&Rect, vec4(1.0f, 1.0f, 1.0f, 0.25f), 20.0f); }