Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 21, 2006, 3:13:34 PM (19 years ago)
Author:
bensch
Message:

resources: some minor implementations

File:
1 edited

Legend:

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

    r7221 r7229  
    8888  if (!fontFile.empty())
    8989  {
    90     tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, (int)fontSize);
     90    tmpFont = dynamic_cast<Font*>(ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, (int)fontSize));
    9191    if (tmpFont != NULL)
    9292      this->font = tmpFont;
Note: See TracChangeset for help on using the changeset viewer.