HostInterface: Refresh display on settings change/state load

This commit is contained in:
Connor McLaughlin
2021-07-11 14:01:04 +10:00
parent bf63be27c6
commit 05259bc851
4 changed files with 24 additions and 13 deletions

View File

@ -1322,8 +1322,6 @@ void QtHostInterface::loadState(const QString& filename)
emit emulationStarting();
LoadState(filename.toStdString().c_str());
if (System::IsValid())
renderDisplay();
}
void QtHostInterface::loadState(bool global, qint32 slot)
@ -1335,8 +1333,6 @@ void QtHostInterface::loadState(bool global, qint32 slot)
}
LoadState(global, slot);
if (System::IsValid())
renderDisplay();
}
void QtHostInterface::saveState(const QString& filename, bool block_until_done /* = false */)
@ -1533,6 +1529,12 @@ void QtHostInterface::OnAchievementsRefreshed()
Cheevos::GetMaximumPointsForGame());
#endif
}
void QtHostInterface::OnDisplayInvalidated()
{
renderDisplay();
}
void QtHostInterface::doBackgroundControllerPoll()
{
PollAndUpdate();

View File

@ -185,6 +185,7 @@ public Q_SLOTS:
void requestRenderWindowScale(qreal scale);
void executeOnEmulationThread(std::function<void()> callback, bool wait = false);
void OnAchievementsRefreshed() override;
void OnDisplayInvalidated() override;
private Q_SLOTS:
void doStopThread();