Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5789 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Nov 26, 2005, 11:19:34 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: windows-compile fix (stl-list)

File:
1 edited

Legend:

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

    r5767 r5789  
    310310    // REBUILDING TEXTURES (ON WINDOWS CONTEXT SWITCH)
    311311#ifdef __WIN32__
    312     tList<BaseObject>* texList = ClassList::getList(CL_TEXTURE);
     312    std::list<BaseObject*>* texList = ClassList::getList(CL_TEXTURE);
    313313    if (texList != NULL)
    314314      {
    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();
    323318      }
    324319#endif /* __WIN32__ */
     
    332327{
    333328  if (fullscreen)
    334     fullscreenFlag = SDL_FULLSCREEN;
     329    this->fullscreenFlag = SDL_FULLSCREEN;
    335330  else
    336     fullscreenFlag = 0;
     331    this->fullscreenFlag = 0;
    337332  this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel);
    338333}
Note: See TracChangeset for help on using the changeset viewer.