diff options
author | Kraant <kraant@gmail.com> | 2008-08-14 07:35:10 +0000 |
---|---|---|
committer | Kraant <kraant@gmail.com> | 2008-08-14 07:35:10 +0000 |
commit | ab1ac07910ae0a4a874a4469a28b192eba28c5d6 (patch) | |
tree | c528ba6942b6b25ea36502aa09717cc67b906d88 /src | |
parent | 36b946d9ae9ae70ac63882d69cd3c805f0f0a5d9 (diff) | |
download | mana-client-ab1ac07910ae0a4a874a4469a28b192eba28c5d6.tar.gz mana-client-ab1ac07910ae0a4a874a4469a28b192eba28c5d6.tar.bz2 mana-client-ab1ac07910ae0a4a874a4469a28b192eba28c5d6.tar.xz mana-client-ab1ac07910ae0a4a874a4469a28b192eba28c5d6.zip |
Doesn't require restart to change to full screen anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/setup_video.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 1b619b9a..0e85138c 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -280,9 +280,15 @@ void Setup_Video::apply() bool fullscreen = mFsCheckBox->isSelected(); if (fullscreen != (config.getValue("screen", 0) == 1)) { + + /*Commented out the openGL test because + * the fullscreen mode change works fine, but + * will need to test it on windows so not + * deleting entirely until then --kraant*/ + // checks for opengl usage - if (!(config.getValue("opengl", 0) == 1)) - { + /*if (!(config.getValue("opengl", 0) == 1)) + {*/ if (!graphics->setFullscreen(fullscreen)) { fullscreen = !fullscreen; @@ -296,10 +302,10 @@ void Setup_Video::apply() logger->error(error.str()); } } - } else { + /*} else { new OkDialog("Switching to full screen", "Restart needed for changes to take effect."); - } + }*/ config.setValue("screen", fullscreen ? 1 : 0); } |