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/network/monitor/network_stats_widget.cc

    r9624 r9640  
    3636  this->setIP(ip);
    3737
    38   this->_name.setFont(Font(ResourceManager::getInstance()->getDataDir() + "/fonts/arial.ttf", 20));
     38  if(_font == NULL)
     39    _font = new Font(ResourceManager::getInstance()->getDataDir() + "/fonts/arial.ttf", 20);
     40
     41  this->_name.setFont(*_font);
    3942  this->_name.setTextSize(15);
    40   this->_ip.setFont(Font(ResourceManager::getInstance()->getDataDir() + "fonts/arial.ttf", 20));
     43  this->_ip.setFont(*_font);
    4144  this->_ip.setTextSize(15);
    4245
     
    5760}
    5861
    59 
     62Font* HostWidget::_font = NULL;
    6063
    6164//======================================================//
Note: See TracChangeset for help on using the changeset viewer.