Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5076 in orxonox.OLD


Ignore:
Timestamp:
Aug 19, 2005, 3:52:54 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minor

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/defs/debug.h

    r5075 r5076  
    9999
    100100//#ifdef
    101 //#define PRINTF(x)        PRINT(x)
     101#define PRINTF(x)        PRINT(x)
    102102#define PRINT_EXEC       Shell::addBufferLineStatic
    103103
     104#ifndef PRINTF
    104105#ifdef DEBUG
    105106
     
    154155#define PRINTF0 \
    155156    printf("%s:%d::", __FILE__, __LINE__) && PRINT_EXEC
    156 
     157#endif
    157158
    158159///////////////////////////////////////////////////
  • trunk/src/lib/graphics/text_engine.cc

    r5075 r5076  
    7272Text::~Text()
    7373{
     74  ResourceManager::getInstance()->unload(this->font);
     75
     76//  if (this->text)
     77    //delete []this->text;
    7478  TextEngine::getInstance()->deleteText(this);
    7579}
     
    846850void TextEngine::deleteText(Text* text)
    847851{
    848   ResourceManager::getInstance()->unload(text->font);
    849852  textList->remove(text);
    850853}
  • trunk/src/lib/util/list.h

    r5074 r5076  
    138138  T* lastElement();
    139139  bool isEmpty();
    140   int getSize();
     140  unsigned int getSize();
    141141  bool inList(T* entity);
    142142  tIterator<T>* getIterator();
     
    359359*/
    360360template<class T>
    361 inline int tList<T>::getSize()
     361inline unsigned int tList<T>::getSize()
    362362{
    363363  return this->size;
  • trunk/src/util/shell.cc

    r5075 r5076  
    7878    Text* newText = TextEngine::getInstance()->createText("fonts/earth.ttf", 10, TEXT_DYNAMIC, 0, 255, 0);
    7979    newText->setAlignment(TEXT_ALIGN_LEFT);
    80     newText->setPosition2D(5, 5);
     80    newText->setPosition2D(5, 500);
    8181    newText->setText("");
    8282    this->bufferText->add(newText);
     
    137137void Shell::addBufferLine(const char* line, va_list arguments)
    138138{
    139   vsprintf(this->bufferArray, line, arguments);
    140 
    141   char* newLine = new char[strlen(this->bufferArray)+1];
    142   strcpy(newLine, this->bufferArray);
     139//  vsprintf(this->bufferArray, line, arguments);
     140
     141//  char* newLine = new char[strlen(this->bufferArray)+1];
     142//  strcpy(newLine, this->bufferArray);
    143143
    144144//  this->buffer->add(newLine);
     
    150150//    }
    151151
    152   this->bufferText->firstElement()->setText(newLine);
     152//  this->bufferText->firstElement()->setText(newLine);
    153153}
    154154
Note: See TracChangeset for help on using the changeset viewer.