From ab1ac07910ae0a4a874a4469a28b192eba28c5d6 Mon Sep 17 00:00:00 2001 From: Kraant Date: Thu, 14 Aug 2008 07:35:10 +0000 Subject: Doesn't require restart to change to full screen anymore --- src/gui/setup_video.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/gui/setup_video.cpp') 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); } -- cgit v1.2.3-70-g09d2