Switch mapCoords to VECTOR2I
This commit is contained in:
parent
eb271ca7fb
commit
3d88f37949
|
@ -570,7 +570,7 @@ void EE_POINT_EDITOR::updateParentItem() const
|
|||
|
||||
for( unsigned i = 0; i < m_editPoints->PointsSize(); ++i )
|
||||
{
|
||||
wxPoint pt = mapCoords( m_editPoints->Point( i ).GetPosition() );
|
||||
VECTOR2I pt = mapCoords( m_editPoints->Point( i ).GetPosition() );
|
||||
shape->GetPolyShape().Append( pt.x, pt.y, -1, -1, true );
|
||||
}
|
||||
|
||||
|
|
|
@ -185,12 +185,12 @@ inline VECTOR2I mapCoords( const wxPoint& aCoord )
|
|||
return VECTOR2I( aCoord.x, -aCoord.y );
|
||||
}
|
||||
|
||||
inline wxPoint mapCoords( const VECTOR2I& aCoord )
|
||||
inline VECTOR2I mapCoords( const VECTOR2I& aCoord )
|
||||
{
|
||||
return wxPoint( aCoord.x, -aCoord.y );
|
||||
}
|
||||
|
||||
inline wxPoint mapCoords( const int x, const int y )
|
||||
inline VECTOR2I mapCoords( const int x, const int y )
|
||||
{
|
||||
return wxPoint( x, -y );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue