Changeset 7453 in orxonox.OLD for trunk/src/lib/graphics/text_engine/multi_line_text.cc
- Timestamp:
- Apr 29, 2006, 10:08:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/multi_line_text.cc
r7451 r7453 117 117 { 118 118 this->lineEnds.clear(); 119 this->lineEnds.push_back(0);120 119 float width = 0.0f; 121 // TODO make size local to this (not using the one from Element2D.122 120 float maxWidth = this->lineWidth / this->getSize(); 123 121 … … 133 131 width += this->getFont()->getGlyphArray()[this->getText()[i]]->advance; 134 132 } 133 this->setSizeY2D(this->lineEnds.size() * (this->lineSpacing+this->getFont()->getMaxHeight())); 135 134 }
Note: See TracChangeset
for help on using the changeset viewer.