Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 12, 2008, 12:57:45 AM (16 years ago)
Author:
rgrieder
Message:

svn save, just in case our house burns down over night…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/console/InGameConsole.cc

    r1578 r1590  
    170170        this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_);
    171171
    172         this->resize();
     172        this->windowResized(GraphicsEngine::getSingleton().getWindowWidth(), GraphicsEngine::getSingleton().getWindowHeight());
    173173
    174174        // move overlay "above" the top edge of the screen
     
    370370        @brief Resizes the console elements. Call if window size changes.
    371371    */
    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;
    376376        this->consoleOverlayBorder_->setWidth((int) this->windowW_* this->relativeWidth);
    377377        this->consoleOverlayBorder_->setHeight((int) this->windowH_ * this->relativeHeight);
     
    468468            Shell::getInstance().registerListener(this);
    469469
    470             this->resize();
     470            this->windowResized(this->windowW_, this->windowH_);
    471471            this->linesChanged();
    472472            this->cursorChanged();
Note: See TracChangeset for help on using the changeset viewer.