Convert Linux only cast from old style

This commit is contained in:
Vasily
2019-02-21 18:48:53 +01:00
committed by username223
parent 1b6cc47238
commit 7234e2ba6c
+1 -1
View File
@@ -461,7 +461,7 @@ QPoint OverlayController::getMousePositionForEvent( vr::VREvent_Mouse_t mouse )
{ {
float y = mouse.y; float y = mouse.y;
#ifdef __linux__ #ifdef __linux__
float h = ( float ) m_pWindow->height(); float h = static_cast<float>( m_pWindow->height() );
y = h - y; y = h - y;
#endif #endif
return QPoint( mouse.x, y ); return QPoint( mouse.x, y );