more fixes after rebase
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -462,7 +462,7 @@ void CViewportTitleDlg::AddFOVMenus(QMenu* menu, std::function<void(float)> call
|
||||
{
|
||||
fov = std::max(1.0f, f);
|
||||
fov = std::min(120.0f, f);
|
||||
QAction* action = menu->addAction(customPresets[i]);
|
||||
QAction* action = menu->addAction(customPreset);
|
||||
connect(action, &QAction::triggered, action, [fov, callback](){ callback(fov); });
|
||||
}
|
||||
}
|
||||
@@ -536,7 +536,7 @@ void CViewportTitleDlg::AddAspectRatioMenus(QMenu* menu, std::function<void(int,
|
||||
|
||||
for (const QString& customPreset : customPresets)
|
||||
{
|
||||
if (customPresets[i].isEmpty())
|
||||
if (customPreset.isEmpty())
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -550,7 +550,7 @@ void CViewportTitleDlg::AddAspectRatioMenus(QMenu* menu, std::function<void(int,
|
||||
Q_ASSERT(ok);
|
||||
unsigned int height = matches.captured(2).toInt(&ok);
|
||||
Q_ASSERT(ok);
|
||||
QAction* action = menu->addAction(customPresets[i]);
|
||||
QAction* action = menu->addAction(customPreset);
|
||||
connect(action, &QAction::triggered, action, [width, height, callback]() {callback(width, height); });
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -254,8 +254,8 @@ namespace AzToolsFramework
|
||||
QRect globalRect = m_editor->GetWidgetAndVisibleChildrenGlobalRect(dragRowWidget);
|
||||
|
||||
int top = mapFromGlobal(globalRect.topLeft()).y();
|
||||
int imageHeight = dragImage.height() / dragImage.devicePixelRatioF();
|
||||
int imageWidth = dragImage.width() / dragImage.devicePixelRatioF();
|
||||
int imageHeight = static_cast<int>(dragImage.height() / dragImage.devicePixelRatioF());
|
||||
int imageWidth = static_cast<int>(dragImage.width() / dragImage.devicePixelRatioF());
|
||||
QRect currRect = QRect(QPoint(LeftMargin + 1, top), QPoint(LeftMargin + 1 + imageWidth, top + imageHeight));
|
||||
|
||||
painter.setOpacity(alpha);
|
||||
|
||||
+1
-1
@@ -1867,7 +1867,7 @@ namespace AzToolsFramework
|
||||
}
|
||||
|
||||
const auto dpr = devicePixelRatioF();
|
||||
QPixmap dragImage(width * dpr, height * dpr);
|
||||
QPixmap dragImage(static_cast<int>(width * dpr), static_cast<int>(height * dpr));
|
||||
dragImage.setDevicePixelRatio(dpr);
|
||||
dragImage.fill(Qt::transparent);
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ namespace Multiplayer
|
||||
input.SetClientInputId(GetLastInputId());
|
||||
|
||||
ScopedAlterTime scopedTime(input.GetHostFrameId(), input.GetHostTimeMs(), input.GetHostBlendFactor(), invokingConnection->GetConnectionId());
|
||||
GetNetBindComponent()->ProcessInput(input, clientInputRateSec);
|
||||
GetNetBindComponent()->ProcessInput(input, static_cast<float>(clientInputRateSec));
|
||||
|
||||
AZLOG(NET_Prediction, "Migrated InputId=%d", aznumeric_cast<int32_t>(input.GetClientInputId()));
|
||||
|
||||
@@ -345,7 +345,7 @@ namespace Multiplayer
|
||||
// Reprocess the input for this frame
|
||||
NetworkInput& input = m_inputHistory[replayIndex];
|
||||
ScopedAlterTime scopedTime(input.GetHostFrameId(), input.GetHostTimeMs(), input.GetHostBlendFactor(), invokingConnection->GetConnectionId());
|
||||
GetNetBindComponent()->ReprocessInput(input, clientInputRateSec);
|
||||
GetNetBindComponent()->ReprocessInput(input, static_cast<float>(clientInputRateSec));
|
||||
|
||||
AZLOG(NET_Prediction, "Replayed InputId=%d", aznumeric_cast<int32_t>(input.GetClientInputId()));
|
||||
}
|
||||
@@ -438,10 +438,10 @@ namespace Multiplayer
|
||||
input.SetHostBlendFactor(multiplayer->GetCurrentBlendFactor());
|
||||
|
||||
// Allow components to form the input for this frame
|
||||
GetNetBindComponent()->CreateInput(input, clientInputRateSec);
|
||||
GetNetBindComponent()->CreateInput(input, static_cast<float>(clientInputRateSec));
|
||||
|
||||
// Process the input for this frame
|
||||
GetNetBindComponent()->ProcessInput(input, clientInputRateSec);
|
||||
GetNetBindComponent()->ProcessInput(input, static_cast<float>(clientInputRateSec));
|
||||
|
||||
AZLOG(NET_Prediction, "Processed InputId=%d", aznumeric_cast<int32_t>(m_clientInputId));
|
||||
|
||||
@@ -506,7 +506,7 @@ namespace Multiplayer
|
||||
NetworkInput& input = m_lastInputReceived[0];
|
||||
{
|
||||
ScopedAlterTime scopedTime(input.GetHostFrameId(), input.GetHostTimeMs(), DefaultBlendFactor, GetNetBindComponent()->GetOwningConnectionId());
|
||||
GetNetBindComponent()->ProcessInput(input, clientInputRateSec);
|
||||
GetNetBindComponent()->ProcessInput(input, static_cast<float>(clientInputRateSec));
|
||||
}
|
||||
|
||||
AZLOG(NET_Prediction, "Forced InputId=%d", aznumeric_cast<int32_t>(input.GetClientInputId()));
|
||||
|
||||
Reference in New Issue
Block a user