Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5859 in orxonox.OLD for trunk/src/lib/graphics/text_engine/font.cc


Ignore:
Timestamp:
Dec 1, 2005, 8:19:26 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: small changes in the Texture interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/font.cc

    r5856 r5859  
    181181    this->fontTTF = NULL;
    182182  }
    183   if (this->prepareSurface(surface))
    184   {
    185     this->setTexture(Texture::loadTexToGL(this->getStoredImage()));
     183  bool hasAlpha;
     184  SDL_Surface* newSurf = this->prepareSurface(surface, hasAlpha);
     185  if (newSurf != NULL)
     186  {
     187    this->setSurface(newSurf);
     188    this->setAlpha(hasAlpha);
     189    this->setTexture(Texture::loadTexToGL(newSurf));
    186190  }
    187191
Note: See TracChangeset for help on using the changeset viewer.