Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 31, 2006, 10:01:36 AM (18 years ago)
Author:
bensch
Message:

orxonox/proxy: way faster update, so update will be made automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/gui/gl/glgui_widget.cc

    r9624 r9640  
    8787  GLGuiWidget* GLGuiWidget::_mouseFocused = NULL;
    8888  GLGuiWidget* GLGuiWidget::_inputGrabber = NULL;
    89 
     89  Font* GLGuiWidget::_defaultFont = NULL;
    9090
    9191
     
    103103    this->_state = OrxGui::Normal;
    104104
    105 
    106     this->_font = Font(ResourceManager::getInstance()->getDataDir() + "/fonts/final_frontier.ttf", 20);
     105    if(GLGuiWidget::_defaultFont == NULL)
     106      GLGuiWidget::_defaultFont = new Font(ResourceManager::getInstance()->getDataDir() + "/fonts/final_frontier.ttf", 20);
     107
     108    this->_font = *GLGuiWidget::_defaultFont;
    107109    this->resetStyle();
    108110
Note: See TracChangeset for help on using the changeset viewer.