- Timestamp:
- Jul 14, 2009, 11:50:47 AM (15 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.