mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 23:06:43 +00:00
Fall back to resolution selected from list when switching to fullscreen (Fixes #1599)
This commit is contained in:
parent
082b6125a9
commit
85a1f9d37b
1 changed files with 9 additions and 0 deletions
|
@ -322,6 +322,15 @@ namespace MWGui
|
||||||
if (_sender == mFullscreenButton)
|
if (_sender == mFullscreenButton)
|
||||||
{
|
{
|
||||||
// check if this resolution is supported in fullscreen
|
// 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;
|
bool supported = false;
|
||||||
for (unsigned int i=0; i<mResolutionList->getItemCount(); ++i)
|
for (unsigned int i=0; i<mResolutionList->getItemCount(); ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue