From 85a1f9d37b3555b43afa1102fd7ed114f2e5cee6 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 30 Jun 2014 00:08:39 +0200 Subject: [PATCH] Fall back to resolution selected from list when switching to fullscreen (Fixes #1599) --- apps/openmw/mwgui/settingswindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/openmw/mwgui/settingswindow.cpp b/apps/openmw/mwgui/settingswindow.cpp index 7496164909..f4602b064c 100644 --- a/apps/openmw/mwgui/settingswindow.cpp +++ b/apps/openmw/mwgui/settingswindow.cpp @@ -322,6 +322,15 @@ namespace MWGui if (_sender == mFullscreenButton) { // check if this resolution is supported in fullscreen + if (mResolutionList->getIndexSelected() != MyGUI::ITEM_NONE) + { + std::string resStr = mResolutionList->getItemNameAt(mResolutionList->getIndexSelected()); + int resX, resY; + parseResolution (resX, resY, resStr); + Settings::Manager::setInt("resolution x", "Video", resX); + Settings::Manager::setInt("resolution y", "Video", resY); + } + bool supported = false; for (unsigned int i=0; igetItemCount(); ++i) {