- Timestamp:
- Aug 19, 2005, 3:52:54 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/debug.h
r5075 r5076 99 99 100 100 //#ifdef 101 //#define PRINTF(x) PRINT(x)101 #define PRINTF(x) PRINT(x) 102 102 #define PRINT_EXEC Shell::addBufferLineStatic 103 103 104 #ifndef PRINTF 104 105 #ifdef DEBUG 105 106 … … 154 155 #define PRINTF0 \ 155 156 printf("%s:%d::", __FILE__, __LINE__) && PRINT_EXEC 156 157 #endif 157 158 158 159 /////////////////////////////////////////////////// -
trunk/src/lib/graphics/text_engine.cc
r5075 r5076 72 72 Text::~Text() 73 73 { 74 ResourceManager::getInstance()->unload(this->font); 75 76 // if (this->text) 77 //delete []this->text; 74 78 TextEngine::getInstance()->deleteText(this); 75 79 } … … 846 850 void TextEngine::deleteText(Text* text) 847 851 { 848 ResourceManager::getInstance()->unload(text->font);849 852 textList->remove(text); 850 853 } -
trunk/src/lib/util/list.h
r5074 r5076 138 138 T* lastElement(); 139 139 bool isEmpty(); 140 int getSize();140 unsigned int getSize(); 141 141 bool inList(T* entity); 142 142 tIterator<T>* getIterator(); … … 359 359 */ 360 360 template<class T> 361 inline int tList<T>::getSize()361 inline unsigned int tList<T>::getSize() 362 362 { 363 363 return this->size; -
trunk/src/util/shell.cc
r5075 r5076 78 78 Text* newText = TextEngine::getInstance()->createText("fonts/earth.ttf", 10, TEXT_DYNAMIC, 0, 255, 0); 79 79 newText->setAlignment(TEXT_ALIGN_LEFT); 80 newText->setPosition2D(5, 5 );80 newText->setPosition2D(5, 500); 81 81 newText->setText(""); 82 82 this->bufferText->add(newText); … … 137 137 void Shell::addBufferLine(const char* line, va_list arguments) 138 138 { 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); 143 143 144 144 // this->buffer->add(newLine); … … 150 150 // } 151 151 152 this->bufferText->firstElement()->setText(newLine);152 // this->bufferText->firstElement()->setText(newLine); 153 153 } 154 154
Note: See TracChangeset
for help on using the changeset viewer.