Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2011, 8:01:37 PM (13 years ago)
Author:
rgrieder
Message:

Attempt to fix incompatibility with CEGUI 0.7.
Doesn't yet work!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/libraries/core/GUIManager.cc

    r8637 r8647  
    743743    /*static*/ void GUIManager::addFontHelper(const std::string& name, int size, const std::string& fontName)
    744744    {
     745#ifdef ORXONOX_OLD_CEGUI
    745746        if(CEGUI::FontManager::getSingleton().isFontPresent(name)) // If a font with that name already exists.
    746747            return;
     
    764765        if(font != NULL)
    765766            font->load();
     767#else
     768        if(CEGUI::FontManager::getSingleton().isDefined(name)) // If a font with that name already exists.
     769            return;
     770
     771        CEGUI::FontManager::getSingleton().createFreeTypeFont(name, (float)size, true, fontName, "", true, 800.0f, 600.0f);
     772#endif
    766773    }
    767774
Note: See TracChangeset for help on using the changeset viewer.