Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8613 in orxonox.OLD for branches/gui/src/lib/graphics/text_engine


Ignore:
Timestamp:
Jun 20, 2006, 11:16:38 AM (18 years ago)
Author:
bensch
Message:

gui: text animates again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/text_engine/limited_width_text.cc

    r8543 r8613  
    133133        {
    134134          this->_dotedText = this->text().substr(0, i) + "...";
     135          if (i > 0)
     136            width -= this->font()->getGlyphArray()[this->text()[i-1]]->advance;
    135137          width += dotsSize;
    136138          break;
     
    149151        {
    150152          this->_dotedText = std::string("...") + this->text().substr(i);
     153          if (i + 1 < (int)text().size() )
     154            width -= this->font()->getGlyphArray()[this->text()[i+1]]->advance;
    151155          width += dotsSize;
    152156          break;
Note: See TracChangeset for help on using the changeset viewer.