Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 27, 2011, 6:01:32 PM (13 years ago)
Author:
landauf
Message:

isFullScreen() can be called on the render window, no need to parse the config options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/src/libraries/core/GraphicsManager.cc

    r7989 r7992  
    463463    bool GraphicsManager::isFullScreen() const
    464464    {
    465         Ogre::ConfigOptionMap& options = ogreRoot_->getRenderSystem()->getConfigOptions();
    466         if (options.find("Full Screen") != options.end())
    467         {
    468             if (options["Full Screen"].currentValue == "Yes")
    469                 return true;
    470             else
    471                 return false;
    472         }
    473         else
    474         {
    475             COUT(0) << "Could not find 'Full Screen' render system option. Fix This!!!" << std::endl;
    476             return false;
    477         }
     465        return this->renderWindow_->isFullScreen();
    478466    }
    479467
Note: See TracChangeset for help on using the changeset viewer.