Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4770 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
Jul 2, 2005, 1:20:56 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: GraphicsEngine now parses the INI-file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r4769 r4770  
    153153  GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, PACKAGE_NAME " " PACKAGE_VERSION);
    154154
    155 
    156   SubString resolution(this->iniParser->getVar(CONFIG_NAME_RESOLUTION, CONFIG_SECTION_VIDEO, "640x480"), 'x');
    157   GraphicsEngine::getInstance()->setResolution(atoi(resolution.getString(0)), atoi(resolution.getString(1)), 16);
    158 
    159   const char* fullscreen = this->iniParser->getVar(CONFIG_NAME_FULLSCREEN, CONFIG_SECTION_VIDEO, "0");
    160   printf("%s\n", fullscreen);
    161   if (strchr(fullscreen, '1'))
    162     GraphicsEngine::getInstance()->setFullscreen(true);
     155  GraphicsEngine::getInstance()->loadFromIniFile(this->iniParser, CONFIG_SECTION_VIDEO);
    163156
    164157  return 0;
Note: See TracChangeset for help on using the changeset viewer.