Merge pull request #53 from cinaera/pr_wrap

Editor: Scale quad point selection indicator with zoomlevel
This commit is contained in:
Dennis Felsing 2014-10-07 14:54:59 +02:00
commit 67f6fb0ff2

View file

@ -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<<V))
{
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);
}