Sfoglia il codice sorgente

yuzu: fix the stuck in fullscreen mode bug

Co-Authored-By: Valentin Vanelslande <vvanelslandedev@gmail.com>
FearlessTobi 6 anni fa
parent
commit
8ba06aa4e1
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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();