Changeset 3291 for code/branches/core4/src/orxonox/overlays
- Timestamp:
- Jul 14, 2009, 11:50:47 AM (15 years ago)
- Location:
- code/branches/core4/src/orxonox/overlays
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/overlays/OrxonoxOverlay.cc
r3265 r3291 47 47 #include "core/XMLPort.h" 48 48 #include "core/ConsoleCommand.h" 49 #include "GraphicsManager.h"50 49 51 50 namespace orxonox … … 81 80 82 81 // Get aspect ratio from the render window. Later on, we get informed automatically 83 Ogre::RenderWindow* defaultWindow = GraphicsManager::getInstance().getRenderWindow(); 84 this->windowAspectRatio_ = (float)defaultWindow->getWidth() / defaultWindow->getHeight(); 82 this->windowAspectRatio_ = (float)this->getWindowWidth() / this->getWindowHeight(); 85 83 this->sizeCorrectionChanged(); 86 84 -
code/branches/core4/src/orxonox/overlays/console/InGameConsole.cc
r3279 r3291 172 172 @brief Initializes the InGameConsole. 173 173 */ 174 void InGameConsole::initialise( int windowWidth, int windowHeight)174 void InGameConsole::initialise() 175 175 { 176 176 // create the corresponding input state … … 248 248 this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_); 249 249 250 this->windowResized( windowWidth, windowHeight);250 this->windowResized(this->getWindowWidth(), this->getWindowWidth()); 251 251 252 252 // move overlay "above" the top edge of the screen -
code/branches/core4/src/orxonox/overlays/console/InGameConsole.h
r3290 r3291 46 46 ~InGameConsole(); 47 47 48 void initialise( int windowWidth, int windowHeight);48 void initialise(); 49 49 void destroy(); 50 50 void setConfigValues();
Note: See TracChangeset
for help on using the changeset viewer.