Changeset 7457 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Apr 30, 2006, 4:28:17 AM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/render_2d.cc
r7453 r7457 21 21 #include "class_list.h" 22 22 #include "element_2d.h" 23 24 #include "shell_command.h"25 SHELL_COMMAND(toggleNodeVisibility, Render2D, toggleNodesVisibility);26 23 27 24 using namespace std; -
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.