Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2006, 11:38:34 PM (18 years ago)
Author:
bensch
Message:

Using MultiLine-Text in the Shell. This is much faster, and Nicer :)

File:
1 edited

Legend:

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

    r7457 r7737  
    3232
    3333  this->lineSpacing = 1.0f;
     34  this->lineCount = 0;
    3435  this->setLineWidth(100.0f);
    3536}
     
    141142      width += this->getFont()->getGlyphArray()[this->getText()[i]]->advance;
    142143  }
     144
     145  this->lineCount = lineEnds.size()+1;
    143146  this->setSizeY2D((this->lineEnds.size()+1) * (this->lineSpacing + this->getFont()->getMaxHeight()));
    144147}
Note: See TracChangeset for help on using the changeset viewer.