Changeset 5079 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Aug 19, 2005, 5:10:35 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5078 r5079 46 46 this->maxFPS = 0; 47 47 48 this->geTextCFPS = NULL; 49 this->geTextMaxFPS = NULL; 50 this->geTextMinFPS = NULL; 51 48 52 this->fullscreenFlag = 0; 49 53 } … … 60 64 { 61 65 // delete what has to be deleted here 66 delete this->geTextCFPS; 67 delete this->geTextMaxFPS; 68 delete this->geTextMinFPS; 69 62 70 63 71 delete Render2D::getInstance(); … … 445 453 { 446 454 #ifndef NO_TEXT 447 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 448 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 449 this->geTextCFPS->setPosition2D(5, 5); 455 if (this->geTextCFPS == NULL) 456 { 457 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 458 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 459 this->geTextCFPS->setPosition2D(5, 5); 460 } 461 if (this->geTextMaxFPS == NULL) 462 { 450 463 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 451 464 this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT); 452 465 this->geTextMaxFPS->setPosition2D(5, 35); 466 } 467 if (this->geTextMinFPS == NULL) 468 { 453 469 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 454 470 this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT); 455 471 this->geTextMinFPS->setPosition2D(5, 65); 472 } 456 473 #endif /* NO_TEXT */ 457 474 }
Note: See TracChangeset
for help on using the changeset viewer.