Make screenCenter a VECTOR2D for now to silence c++ 20 build error

This commit is contained in:
Marek Roszko 2024-04-12 21:48:41 -04:00
parent 1516aaf163
commit b2115445cc
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ void WX_VIEW_CONTROLS::WarpMouseCursor( const VECTOR2D& aPosition, bool aWorldCo
void WX_VIEW_CONTROLS::CenterOnCursor() void WX_VIEW_CONTROLS::CenterOnCursor()
{ {
const VECTOR2I& screenSize = m_view->GetGAL()->GetScreenPixelSize(); const VECTOR2I& screenSize = m_view->GetGAL()->GetScreenPixelSize();
VECTOR2I screenCenter( screenSize / 2 ); VECTOR2D screenCenter( screenSize / 2 );
if( GetMousePosition( false ) != screenCenter ) if( GetMousePosition( false ) != screenCenter )
{ {