Changeset 7661 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- May 18, 2006, 12:55:34 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r7428 r7661 155 155 { 156 156 // looking if we are in fullscreen-mode 157 const std::stringfullscreen = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO, CONFIG_NAME_FULLSCREEN, "0");158 159 if (fullscreen [0] == '1' || fullscreen == "true")157 MultiType fullscreen = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO, CONFIG_NAME_FULLSCREEN, "0"); 158 159 if (fullscreen.getBool()) 160 160 this->fullscreenFlag = SDL_FULLSCREEN; 161 161 162 162 // looking if we are in fullscreen-mode 163 const std::string textures = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO_ADVANCED, CONFIG_NAME_TEXTURES, "0"); 164 if (textures[0] == '1' || textures == "true") 165 Texture::setTextureEnableState(true); 166 else 167 Texture::setTextureEnableState(false); 163 MultiType textures = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO_ADVANCED, CONFIG_NAME_TEXTURES, "1"); 164 Texture::setTextureEnableState(textures.getBool()); 168 165 169 166 // searching for a usefull resolution
Note: See TracChangeset
for help on using the changeset viewer.