Switch mapCoords to VECTOR2I

This commit is contained in:
Seth Hillbrand 2022-01-07 08:37:37 -08:00
parent eb271ca7fb
commit 3d88f37949
2 changed files with 3 additions and 3 deletions

View File

@ -570,7 +570,7 @@ void EE_POINT_EDITOR::updateParentItem() const
for( unsigned i = 0; i < m_editPoints->PointsSize(); ++i ) 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 ); shape->GetPolyShape().Append( pt.x, pt.y, -1, -1, true );
} }

View File

@ -185,12 +185,12 @@ inline VECTOR2I mapCoords( const wxPoint& aCoord )
return VECTOR2I( aCoord.x, -aCoord.y ); return VECTOR2I( aCoord.x, -aCoord.y );
} }
inline wxPoint mapCoords( const VECTOR2I& aCoord ) inline VECTOR2I mapCoords( const VECTOR2I& aCoord )
{ {
return wxPoint( aCoord.x, -aCoord.y ); 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 ); return wxPoint( x, -y );
} }