Explorar o código

Merge pull request #3576 from FearlessTobi/port-4906

Port citra-emu/citra#4906: "citra_qt: fix the stuck in fullscreen mode"
bunnei %!s(int64=6) %!d(string=hai) anos
pai
achega
9bd9980372
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/yuzu/main.cpp

+ 8 - 0
src/yuzu/main.cpp

@@ -1034,6 +1034,14 @@ void GMainWindow::BootGame(const QString& filename) {
 }
 
 void GMainWindow::ShutdownGame() {
+    if (!emulation_running) {
+        return;
+    }
+
+    if (ui.action_Fullscreen->isChecked()) {
+        HideFullscreen();
+    }
+
     AllowOSSleep();
 
     discord_rpc->Pause();