Changeset 5789 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Nov 26, 2005, 11:19:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5767 r5789 310 310 // REBUILDING TEXTURES (ON WINDOWS CONTEXT SWITCH) 311 311 #ifdef __WIN32__ 312 tList<BaseObject>* texList = ClassList::getList(CL_TEXTURE);312 std::list<BaseObject*>* texList = ClassList::getList(CL_TEXTURE); 313 313 if (texList != NULL) 314 314 { 315 tIterator<BaseObject>* texIt = texList->getIterator(); 316 Texture* reTex = static_cast<Texture*>(texIt->firstElement()); 317 while (reTex != NULL) 318 { 319 reTex->rebuild(); 320 321 reTex = static_cast<Texture*>(texIt->nextElement()); 322 } 315 std::list<BaseObject*>::iterator reTex; 316 for (reTex = texList->begin(); reTex != texList->end(); reTex++) 317 dynamic_cast<Texture*>(*reTex)->rebuild(); 323 318 } 324 319 #endif /* __WIN32__ */ … … 332 327 { 333 328 if (fullscreen) 334 fullscreenFlag = SDL_FULLSCREEN;329 this->fullscreenFlag = SDL_FULLSCREEN; 335 330 else 336 fullscreenFlag = 0;331 this->fullscreenFlag = 0; 337 332 this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel); 338 333 }
Note: See TracChangeset
for help on using the changeset viewer.