Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5124 in orxonox.OLD for trunk/src/util/shell.cc


Ignore:
Timestamp:
Aug 25, 2005, 2:46:34 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: text is now Rendered as expected (in FastMode)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/shell.cc

    r5123 r5124  
    163163  this->inputLineText->setText(NULL);
    164164  this->inputLineText->setParent2D(this);
    165   this->inputLineText->setRelCoor2D(5, (this->textSize + this->lineSpacing)*this->bufferDisplaySize);
     165  this->inputLineText->setRelCoor2D(5, (this->textSize + this->lineSpacing)*this->bufferDisplaySize + this->textSize);
    166166
    167167  this->setBufferDisplaySize(this->bufferDisplaySize);
     
    746746Vector Shell::calculateLinePosition(unsigned int lineNumber)
    747747{
    748   return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber -1), 0);
     748  return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber -1) + this->textSize, 0);
    749749}
    750750
Note: See TracChangeset for help on using the changeset viewer.