mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Editor: Scale quad point selection indicator with zoomlevel
This commit is contained in:
parent
9691293f4c
commit
fa83e5b340
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue