Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 29, 2006, 10:08:38 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Size is local to text now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/multi_line_text.cc

    r7451 r7453  
    117117{
    118118  this->lineEnds.clear();
    119   this->lineEnds.push_back(0);
    120119  float width = 0.0f;
    121   // TODO make size local to this (not using the one from Element2D.
    122120  float maxWidth = this->lineWidth / this->getSize();
    123121
     
    133131      width += this->getFont()->getGlyphArray()[this->getText()[i]]->advance;
    134132  }
     133  this->setSizeY2D(this->lineEnds.size() * (this->lineSpacing+this->getFont()->getMaxHeight()));
    135134}
Note: See TracChangeset for help on using the changeset viewer.