Changeset 7457 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- Apr 30, 2006, 4:28:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/multi_line_text.cc
r7456 r7457 32 32 33 33 this->lineSpacing = 1.0f; 34 this->lineWidth = 100.0f; 35 this->setupTextWidth(); 34 this->setLineWidth(100.0f); 36 35 } 37 36 … … 43 42 { 44 43 this->lineWidth = lineWidth; 44 this->setSizeX2D(lineWidth); 45 45 this->setupTextWidth(); 46 46 } … … 141 141 width += this->getFont()->getGlyphArray()[this->getText()[i]]->advance; 142 142 } 143 this->setSizeY2D( this->lineEnds.size() * (this->lineSpacing + this->getFont()->getMaxHeight()));143 this->setSizeY2D((this->lineEnds.size()+1) * (this->lineSpacing + this->getFont()->getMaxHeight())); 144 144 }
Note: See TracChangeset
for help on using the changeset viewer.