Changeset 1590 for code/branches/hud/src/orxonox/console/InGameConsole.cc
- Timestamp:
- Jun 12, 2008, 12:57:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/console/InGameConsole.cc
r1578 r1590 170 170 this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_); 171 171 172 this-> resize();172 this->windowResized(GraphicsEngine::getSingleton().getWindowWidth(), GraphicsEngine::getSingleton().getWindowHeight()); 173 173 174 174 // move overlay "above" the top edge of the screen … … 370 370 @brief Resizes the console elements. Call if window size changes. 371 371 */ 372 void InGameConsole:: resize()373 { 374 this->windowW_ = GraphicsEngine::getSingleton().getWindowWidth();375 this->windowH_ = GraphicsEngine::getSingleton().getWindowHeight();372 void InGameConsole::windowResized(int newWidth, int newHeight) 373 { 374 this->windowW_ = newWidth; 375 this->windowH_ = newHeight; 376 376 this->consoleOverlayBorder_->setWidth((int) this->windowW_* this->relativeWidth); 377 377 this->consoleOverlayBorder_->setHeight((int) this->windowH_ * this->relativeHeight); … … 468 468 Shell::getInstance().registerListener(this); 469 469 470 this-> resize();470 this->windowResized(this->windowW_, this->windowH_); 471 471 this->linesChanged(); 472 472 this->cursorChanged();
Note: See TracChangeset
for help on using the changeset viewer.