From b2115445cca3f8b9e7e3e117019b6882e8222bd4 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 12 Apr 2024 21:48:41 -0400 Subject: [PATCH] Make screenCenter a VECTOR2D for now to silence c++ 20 build error --- common/view/wx_view_controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index 13443eaab0..da1ee6dfae 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -847,7 +847,7 @@ void WX_VIEW_CONTROLS::WarpMouseCursor( const VECTOR2D& aPosition, bool aWorldCo void WX_VIEW_CONTROLS::CenterOnCursor() { const VECTOR2I& screenSize = m_view->GetGAL()->GetScreenPixelSize(); - VECTOR2I screenCenter( screenSize / 2 ); + VECTOR2D screenCenter( screenSize / 2 ); if( GetMousePosition( false ) != screenCenter ) {