Changeset 7451 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Apr 29, 2006, 9:49:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/multi_line_text.cc
r7450 r7451 80 80 81 81 glBegin(GL_QUADS); 82 for (unsigned int i = 0; i < this->getText().size(); i++)82 for (unsigned int i = 0; i < this->getText().size(); ++i) 83 83 { 84 if (unlikely(t mpGlyph->character== '\n' || i == this->lineEnds[lineNumber]))84 if (unlikely(this->getText()[i] == '\n' || i == this->lineEnds[lineNumber])) 85 85 { 86 // go to the next Line.87 lineNumber++;86 // go to the next Line. 87 ++lineNumber; 88 88 posX = 0.0f; 89 89 posY += this->lineSpacing + this->getFont()->getMaxHeight(); … … 117 117 { 118 118 this->lineEnds.clear(); 119 this->lineEnds.push_back(0); 119 120 float width = 0.0f; 120 121 // TODO make size local to this (not using the one from Element2D.
Note: See TracChangeset
for help on using the changeset viewer.