Changeset 8543 in orxonox.OLD for branches/gui/src/lib/graphics/text_engine/limited_width_text.cc
- Timestamp:
- Jun 16, 2006, 5:27:29 PM (18 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.