Fix the stuck in fullscreen bug (Original PR: citra-emu/citra#3611)

This commit is contained in:
adityaruplaha 2018-04-14 16:35:47 +05:30
parent c6ab2c94d9
commit 958c98bdae
1 changed files with 4 additions and 2 deletions

View File

@ -776,9 +776,11 @@ void GMainWindow::closeEvent(QCloseEvent* event) {
return;
}
UISettings::values.geometry = saveGeometry();
if (ui.action_Fullscreen->isChecked()) {
UISettings::values.geometry = saveGeometry();
UISettings::values.renderwindow_geometry = render_window->saveGeometry();
}
UISettings::values.state = saveState();
UISettings::values.renderwindow_geometry = render_window->saveGeometry();
#if MICROPROFILE_ENABLED
UISettings::values.microprofile_geometry = microProfileDialog->saveGeometry();
UISettings::values.microprofile_visible = microProfileDialog->isVisible();