Changeset 4769 in orxonox.OLD
- Timestamp:
- Jul 2, 2005, 12:09:10 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4768 r4769 150 150 this->bitsPerPixel = bpp; 151 151 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) 153 153 { 154 154 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 157 157 GraphicsEngine::getInstance()->setResolution(atoi(resolution.getString(0)), atoi(resolution.getString(1)), 16); 158 158 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); 161 163 162 164 return 0;
Note: See TracChangeset
for help on using the changeset viewer.