Changeset 5859 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- Dec 1, 2005, 8:19:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/font.cc
r5856 r5859 181 181 this->fontTTF = NULL; 182 182 } 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)); 186 190 } 187 191
Note: See TracChangeset
for help on using the changeset viewer.