mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 09:35:45 -04:00
HostInterface: Refresh display on settings change/state load
This commit is contained in:
@ -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();
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user