소스 검색

Merge pull request #3576 from FearlessTobi/port-4906

Port citra-emu/citra#4906: "citra_qt: fix the stuck in fullscreen mode"
bunnei 6 년 전
부모
커밋
9bd9980372
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  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();