Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5420 in orxonox.OLD for trunk/src/lib/shell/shell.cc


Ignore:
Timestamp:
Oct 22, 2005, 1:57:29 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Font is now Right, and the Rendering 'should be' faster.

File:
1 edited

Legend:

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

    r5398 r5420  
    8484  this->textSize = 20;
    8585  this->lineSpacing = 0;
    86   this->bActive = false;
     86  this->bActive = true;
    8787  this->fontFile = new char[strlen(SHELL_DEFAULT_FONT)+1];
    8888  strcpy(this->fontFile, SHELL_DEFAULT_FONT);
     
    9494  this->setBackgroundColor(SHELL_DEFAULT_BACKGROUND_COLOR);
    9595
     96  this->deactivate();
    9697  // register the shell at the ShellBuffer
    9798  ShellBuffer::getInstance()->registerShell(this);
     
    135136  {
    136137    this->bufferText[i]->setText(bufferIT->getCurrent(), true);
     138    this->bufferText[i]->setVisibility(true);
    137139    bufferIT->prevStep();
    138140  }
     
    159161    this->bufferText[i]->setText(bufferIT->getCurrent(), false);
    160162    bufferIT->prevStep();
     163    this->bufferText[i]->setVisibility(false);
    161164  }
    162165  delete bufferIT;
     
    254257    this->shellInput->setColor(this->textColor[0], this->textColor[1], this->textColor[2]);
    255258    this->shellInput->setBlending(this->textColor[3]);
    256     this->shellInput->setRelCoor2D(5, (this->textSize + this->lineSpacing)*this->bufferDisplaySize + this->textSize);
     259    this->shellInput->setRelCoor2D(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize));
    257260  }
    258261
     
    271274  }
    272275  this->shellHeight = (this->textSize + this->lineSpacing) * (bufferDisplaySize+1);
    273 
    274276}
    275277
     
    501503Vector Shell::calculateLinePosition(unsigned int lineNumber)
    502504{
    503   return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber -1) + this->textSize, 0);
     505  return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize, 0);
    504506}
    505507
Note: See TracChangeset for help on using the changeset viewer.