diff options
author | Ira Rice <irarice@gmail.com> | 2008-09-25 00:15:44 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-09-25 00:15:44 +0000 |
commit | 489a429bea6739dfa25503b9329bd9e33bffb856 (patch) | |
tree | 8112f6fd988fdc0610329b6bc14ee3f9d5801092 /src/gui/setup_video.cpp | |
parent | 2dc8eadff1e67bb70b1772ecc19c9e1e2e40a5b4 (diff) | |
download | mana-489a429bea6739dfa25503b9329bd9e33bffb856.tar.gz mana-489a429bea6739dfa25503b9329bd9e33bffb856.tar.bz2 mana-489a429bea6739dfa25503b9329bd9e33bffb856.tar.xz mana-489a429bea6739dfa25503b9329bd9e33bffb856.zip |
Merged the Tametomo branch into trunk.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r-- | src/gui/setup_video.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 0e85138c..dd56ee2f 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -280,15 +280,17 @@ 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*/ - /*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*/ - +#ifdef WIN32 // checks for opengl usage - /*if (!(config.getValue("opengl", 0) == 1)) - {*/ + if (!(config.getValue("opengl", 0) == 1)) + { +#endif if (!graphics->setFullscreen(fullscreen)) { fullscreen = !fullscreen; @@ -302,10 +304,12 @@ void Setup_Video::apply() logger->error(error.str()); } } - /*} else { +#ifdef WIN32 + } else { new OkDialog("Switching to full screen", "Restart needed for changes to take effect."); - }*/ + } +#endif config.setValue("screen", fullscreen ? 1 : 0); } |