Changeset 8543 in orxonox.OLD for branches/gui/src/lib
- Timestamp:
- Jun 16, 2006, 5:27:29 PM (18 years ago)
- Location:
- branches/gui/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/text_engine/limited_width_text.cc
r8542 r8543 141 141 } 142 142 break; 143 143 144 case Begin: 144 for (unsigned int i = this->text().size() - 1; i < 0; i--) 145 int i = text().size() -1; 146 for (; i >= 0; --i) 145 147 { 146 148 if (width + dotsSize > maxWidth ) … … 157 159 } 158 160 161 printf("%f %s\n", width, _dotedText.c_str()); 159 162 this->setSizeX2D(width * this->size()); 160 163 } -
branches/gui/src/lib/gui/gl/glgui_inputline.cc
r8542 r8543 53 53 this->_text.setFont("fonts/final_frontier.ttf", 20); 54 54 this->_text.setLineWidth(400); 55 this->_text.setDotsPosition(LimitedWidthText:: End);55 this->_text.setDotsPosition(LimitedWidthText::Begin); 56 56 this->_text.setColor(this->frontColor()); 57 57 this->_text.setVisibility(false);
Note: See TracChangeset
for help on using the changeset viewer.