Changeset 9656 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_widget.cc
- Timestamp:
- Aug 4, 2006, 11:01:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_widget.cc
r9406 r9656 79 79 if (this == GLGuiWidget::selected()) 80 80 this->unselect(); 81 82 if (this->_parent != NULL) 83 this->_parent->removeChildWidget(this); 81 84 } 82 85 … … 84 87 GLGuiWidget* GLGuiWidget::_mouseFocused = NULL; 85 88 GLGuiWidget* GLGuiWidget::_inputGrabber = NULL; 86 89 Font* GLGuiWidget::_defaultFont = NULL; 87 90 88 91 … … 100 103 this->_state = OrxGui::Normal; 101 104 102 103 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; 104 109 this->resetStyle(); 105 110 … … 776 781 void GLGuiWidget::setFont(const std::string& fontName, unsigned int renderSize) 777 782 { 778 this-> _font = Font(fontName, renderSize);783 this->setFont(Font(fontName, renderSize)); 779 784 } 780 785
Note: See TracChangeset
for help on using the changeset viewer.