From 8b3ab8eb0bb5c6c535c9b0b49df0d1bbc5c5e599 Mon Sep 17 00:00:00 2001 From: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> Date: Thu, 12 Aug 2021 17:26:56 -0700 Subject: [PATCH] fixing warning issued in Jenkins Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> --- .../AzToolsFramework/Input/QtEventToAzInputManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Framework/AzToolsFramework/AzToolsFramework/Input/QtEventToAzInputManager.cpp b/Code/Framework/AzToolsFramework/AzToolsFramework/Input/QtEventToAzInputManager.cpp index feb7a35433..4f238ac336 100644 --- a/Code/Framework/AzToolsFramework/AzToolsFramework/Input/QtEventToAzInputManager.cpp +++ b/Code/Framework/AzToolsFramework/AzToolsFramework/Input/QtEventToAzInputManager.cpp @@ -307,9 +307,9 @@ namespace AzToolsFramework // Generate movement events based on the pixel delta divided by the DPI scaling factor, to calculate a rough approximation // of cursor movement velocity. movementXChannel->ProcessRawInputEvent( - static_cast(m_cursorPosition->m_normalizedPositionDelta.GetX()) * aznumeric_cast(m_sourceWidget->width()) / m_sourceWidget->devicePixelRatioF()); + m_cursorPosition->m_normalizedPositionDelta.GetX() * aznumeric_cast(m_sourceWidget->width()) / static_cast(m_sourceWidget->devicePixelRatioF())); movementYChannel->ProcessRawInputEvent( - static_cast(m_cursorPosition->m_normalizedPositionDelta.GetY()) * aznumeric_cast(m_sourceWidget->height()) / m_sourceWidget->devicePixelRatioF()); + m_cursorPosition->m_normalizedPositionDelta.GetY() * aznumeric_cast(m_sourceWidget->height()) / static_cast(m_sourceWidget->devicePixelRatioF())); mouseWheelChannel->ProcessRawInputEvent(0.f); NotifyUpdateChannelIfNotIdle(systemCursorChannel, nullptr);