More fixes that are failing on Jenkins but not locally

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-11 19:35:13 -07:00
parent 75c388b746
commit 52068911bb
2 changed files with 3 additions and 3 deletions
@@ -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(
m_cursorPosition->m_normalizedPositionDelta.GetX() * aznumeric_cast<float>(m_sourceWidget->width()) / m_sourceWidget->devicePixelRatioF());
static_cast<float>(m_cursorPosition->m_normalizedPositionDelta.GetX()) * aznumeric_cast<float>(m_sourceWidget->width()) / m_sourceWidget->devicePixelRatioF());
movementYChannel->ProcessRawInputEvent(
m_cursorPosition->m_normalizedPositionDelta.GetY() * aznumeric_cast<float>(m_sourceWidget->height()) / m_sourceWidget->devicePixelRatioF());
static_cast<float>(m_cursorPosition->m_normalizedPositionDelta.GetY()) * aznumeric_cast<float>(m_sourceWidget->height()) / m_sourceWidget->devicePixelRatioF());
mouseWheelChannel->ProcessRawInputEvent(0.f);
NotifyUpdateChannelIfNotIdle(systemCursorChannel, nullptr);
@@ -2180,7 +2180,7 @@ namespace AzToolsFramework
QPainterPath path;
auto newRect = option.rect;
newRect.setHeight(newRect.height() - 1.0);
newRect.setHeight(newRect.height() - 1);
path.addRect(newRect);
// Get the foreground color of the current object to draw our sub-object-selected box