Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4769 in orxonox.OLD


Ignore:
Timestamp:
Jul 2, 2005, 12:09:10 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now there is the ability to Fly in fullscreen-mode

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/graphics_engine.cc

    r4768 r4769  
    150150  this->bitsPerPixel = bpp;
    151151
    152   if((this->screen = SDL_SetVideoMode(this->resolutionX, this->resolutionY, this->bitsPerPixel, this->videoFlags | SDL_FULLSCREEN)) == NULL)
     152  if((this->screen = SDL_SetVideoMode(this->resolutionX, this->resolutionY, this->bitsPerPixel, this->videoFlags | this->fullscreenFlag)) == NULL)
    153153    {
    154154      PRINTF(1)("Could not SDL_SetVideoMode(%d, %d, %d, %d): %s\n", this->resolutionX, this->resolutionY, this->bitsPerPixel, this->videoFlags, SDL_GetError());
  • orxonox/trunk/src/orxonox.cc

    r4766 r4769  
    157157  GraphicsEngine::getInstance()->setResolution(atoi(resolution.getString(0)), atoi(resolution.getString(1)), 16);
    158158
    159 //  const char* fullscreen = this->iniParser->getVar(CONFIG_NAME_FULLSCREEN, CONFIG_SECTION_VIDEO, 0);
    160 //  GraphicsEngine::getInstance()->setFullscreen(false);
     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);
    161163
    162164  return 0;
Note: See TracChangeset for help on using the changeset viewer.