[Orxonox-commit 3303] r7992 - code/branches/usability/src/libraries/core

landauf at orxonox.net landauf at orxonox.net
Sun Feb 27 18:01:32 CET 2011


Author: landauf
Date: 2011-02-27 18:01:32 +0100 (Sun, 27 Feb 2011)
New Revision: 7992

Modified:
   code/branches/usability/src/libraries/core/GraphicsManager.cc
Log:
isFullScreen() can be called on the render window, no need to parse the config options

Modified: code/branches/usability/src/libraries/core/GraphicsManager.cc
===================================================================
--- code/branches/usability/src/libraries/core/GraphicsManager.cc	2011-02-27 16:32:23 UTC (rev 7991)
+++ code/branches/usability/src/libraries/core/GraphicsManager.cc	2011-02-27 17:01:32 UTC (rev 7992)
@@ -462,19 +462,7 @@
 
     bool GraphicsManager::isFullScreen() const
     {
-        Ogre::ConfigOptionMap& options = ogreRoot_->getRenderSystem()->getConfigOptions();
-        if (options.find("Full Screen") != options.end())
-        {
-            if (options["Full Screen"].currentValue == "Yes")
-                return true;
-            else
-                return false;
-        }
-        else
-        {
-            COUT(0) << "Could not find 'Full Screen' render system option. Fix This!!!" << std::endl;
-            return false;
-        }
+        return this->renderWindow_->isFullScreen();
     }
 
     std::string GraphicsManager::setScreenResolution(unsigned int width, unsigned int height, bool fullscreen)




More information about the Orxonox-commit mailing list