Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 25, 2005, 1:26:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: color is now a parameter of text not font

File:
1 edited

Legend:

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

    r5120 r5121  
    158158  if (this->inputLineText == NULL)
    159159    delete this->inputLineText;
    160   this->inputLineText = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC, 255, 0, 0);
     160  this->inputLineText = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC);
     161  this->inputLineText->setColor(1, 0, 0);
    161162  this->inputLineText->setAlignment(TEXT_ALIGN_LEFT);
    162163  this->inputLineText->setText(NULL);
     
    183184  for (unsigned int i = 0; i < bufferDisplaySize; i++)
    184185  {
    185     this->bufferText[i] = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC, 255, 0, 0);
     186    this->bufferText[i] = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC);
     187    this->bufferText[i]->setColor(1, 0, 0);
    186188    this->bufferText[i]->setAlignment(TEXT_ALIGN_LEFT);
    187189    this->bufferText[i]->setRelCoor2D(calculateLinePosition(i));
Note: See TracChangeset for help on using the changeset viewer.