From 7234e2ba6cc6d2dc293f98c2b43d73813b65a8a3 Mon Sep 17 00:00:00 2001 From: Vasily Date: Sun, 17 Feb 2019 20:18:38 +0100 Subject: [PATCH] Convert Linux only cast from old style --- src/overlaycontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overlaycontroller.cpp b/src/overlaycontroller.cpp index e90e250..0497861 100644 --- a/src/overlaycontroller.cpp +++ b/src/overlaycontroller.cpp @@ -461,7 +461,7 @@ QPoint OverlayController::getMousePositionForEvent( vr::VREvent_Mouse_t mouse ) { float y = mouse.y; #ifdef __linux__ - float h = ( float ) m_pWindow->height(); + float h = static_cast( m_pWindow->height() ); y = h - y; #endif return QPoint( mouse.x, y );