From fa83e5b34088f8cc464ace4bef8c856746948ec3 Mon Sep 17 00:00:00 2001 From: BeaR Date: Tue, 7 Oct 2014 14:49:45 +0200 Subject: [PATCH] Editor: Scale quad point selection indicator with zoomlevel --- src/game/editor/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 2f636ff72..771f5bf85 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -1151,7 +1151,7 @@ void CEditor::DoQuad(CQuad *q, int Index) if(m_SelectedQuad == Index) { Graphics()->SetColor(0,0,0,1); - IGraphics::CQuadItem QuadItem(CenterX, CenterY, 7.0f, 7.0f); + IGraphics::CQuadItem QuadItem(CenterX, CenterY, 7.0f*m_WorldZoom, 7.0f*m_WorldZoom); Graphics()->QuadsDraw(&QuadItem, 1); } @@ -1337,7 +1337,7 @@ void CEditor::DoQuadPoint(CQuad *pQuad, int QuadIndex, int V) if(m_SelectedQuad == QuadIndex && m_SelectedPoints&(1<SetColor(0,0,0,1); - IGraphics::CQuadItem QuadItem(px, py, 7.0f, 7.0f); + IGraphics::CQuadItem QuadItem(px, py, 7.0f*m_WorldZoom, 7.0f*m_WorldZoom); Graphics()->QuadsDraw(&QuadItem, 1); }