Editor: Scale quad point selection indicator with zoomlevel

This commit is contained in:
BeaR 2014-10-07 14:49:45 +02:00
parent 9691293f4c
commit fa83e5b340

View file

@ -1151,7 +1151,7 @@ void CEditor::DoQuad(CQuad *q, int Index)
if(m_SelectedQuad == Index) if(m_SelectedQuad == Index)
{ {
Graphics()->SetColor(0,0,0,1); 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); Graphics()->QuadsDraw(&QuadItem, 1);
} }
@ -1337,7 +1337,7 @@ void CEditor::DoQuadPoint(CQuad *pQuad, int QuadIndex, int V)
if(m_SelectedQuad == QuadIndex && m_SelectedPoints&(1<<V)) if(m_SelectedQuad == QuadIndex && m_SelectedPoints&(1<<V))
{ {
Graphics()->SetColor(0,0,0,1); Graphics()->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); Graphics()->QuadsDraw(&QuadItem, 1);
} }