Changeset 8613 in orxonox.OLD for branches/gui/src/lib/graphics/text_engine
- Timestamp:
- Jun 20, 2006, 11:16:38 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/text_engine/limited_width_text.cc
r8543 r8613 133 133 { 134 134 this->_dotedText = this->text().substr(0, i) + "..."; 135 if (i > 0) 136 width -= this->font()->getGlyphArray()[this->text()[i-1]]->advance; 135 137 width += dotsSize; 136 138 break; … … 149 151 { 150 152 this->_dotedText = std::string("...") + this->text().substr(i); 153 if (i + 1 < (int)text().size() ) 154 width -= this->font()->getGlyphArray()[this->text()[i+1]]->advance; 151 155 width += dotsSize; 152 156 break;
Note: See TracChangeset
for help on using the changeset viewer.