mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #53 from cinaera/pr_wrap
Editor: Scale quad point selection indicator with zoomlevel
This commit is contained in:
commit
67f6fb0ff2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue