UI: Make GPU events more consistent.

This commit is contained in:
Unknown W. Brackets committed 2017-04-27 20:03:50 -07:00
1 parent 7613fd97aa
commit 661b2a3aa8
6 files changed
+17 -22

No files matched your search

+3 -7
View File
@@ -1051,9 +1051,8 @@ void GameSettingsScreen::onFinish(DialogResult result) {
KeyMap::UpdateNativeMenuKeys();
// Wipe some caches after potentially changing settings.
if (gpu)
gpu->Resized();
Reporting::UpdateConfig();
NativeMessageReceived("gpu_resized", "");
NativeMessageReceived("gpu_clearCache", "");
}
/*
@@ -1169,10 +1168,7 @@ UI::EventReturn GameSettingsScreen::OnPostProcShader(UI::EventParams &e) {
}
UI::EventReturn GameSettingsScreen::OnPostProcShaderChange(UI::EventParams &e) {
if (gpu) {
gpu->Resized();
}
Reporting::UpdateConfig();
NativeMessageReceived("gpu_resized", "");
return UI::EVENT_DONE;
}