Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2006, 6:38:05 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: non-compiling new Version of the Data-Font

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fontdata/src/lib/graphics/text_engine/text.cc

    r8619 r8753  
    5656Text::~Text()
    5757{
    58   if (this->_font != NULL && this->_font != Font::getDefaultFont())
    59     ResourceManager::getInstance()->unload(this->_font);
     58/*  if (this->_font != NULL && this->_font != Font::getDefaultFont())
     59    ResourceManager::getInstance()->unload(this->_font);*/
    6060}
    6161
     
    175175{
    176176  Font* newFont = NULL;
    177   Font* oldFont = this->_font;
     177//  Font* oldFont = this->_font;
    178178
    179179  // load a new Font
     
    183183    if (newFont == NULL)
    184184    {
    185       newFont = Font::getDefaultFont();
     185      //      newFont = Font::getDefaultFont();
    186186      PRINTF(2)("Font %s could not be loaded, probably file not found\n", fontFile.c_str());
    187187    }
    188188  }
    189   if (newFont == NULL)
    190     newFont = Font::getDefaultFont();
     189//  if (newFont == NULL)
     190//    newFont = Font::getDefaultFont();
    191191  assert(newFont != NULL);
    192192
    193193  // unloading the Font if we alrady have one loaded.
    194194  this->_font = newFont;
    195   if (oldFont != NULL && oldFont != Font::getDefaultFont())
    196     ResourceManager::getInstance()->unload(oldFont);
     195//   if (oldFont != NULL && oldFont != Font::getDefaultFont())
     196//     ResourceManager::getInstance()->unload(oldFont);
    197197
    198198  this->setupTextWidth();
Note: See TracChangeset for help on using the changeset viewer.