Index: code/branches/gui/src/orxonox/overlays/OrxonoxOverlay.cc
===================================================================
--- code/branches/gui/src/orxonox/overlays/OrxonoxOverlay.cc	(revision 2800)
+++ code/branches/gui/src/orxonox/overlays/OrxonoxOverlay.cc	(revision 2801)
@@ -39,4 +39,6 @@
 #include <OgreOverlayManager.h>
 #include <OgrePanelOverlayElement.h>
+#include <OgreRenderWindow.h>
+
 #include "util/Convert.h"
 #include "util/Exception.h"
@@ -46,4 +48,5 @@
 #include "core/XMLPort.h"
 #include "core/ConsoleCommand.h"
+#include "GraphicsManager.h"
 
 namespace orxonox
@@ -77,7 +80,7 @@
         this->overlay_->add2D(this->background_);
 
-        // We'll have to set the aspect ratio to a default value first.
-        // GSGraphics gets informed about our construction here and can update us in the next tick.
-        this->windowAspectRatio_ = 1.0;
+        // Get aspect ratio from the render window. Later on, we get informed automatically
+        Ogre::RenderWindow* defaultWindow = GraphicsManager::getInstance().getRenderWindow();
+        this->windowAspectRatio_ = (float)defaultWindow->getWidth() / defaultWindow->getHeight();
         this->sizeCorrectionChanged();
 
@@ -175,8 +178,8 @@
     /**
     @brief
-        Called by the GraphicsEngine whenever the window size changes.
+        Called by the GraphicsManager whenever the window size changes.
         Calculates the aspect ratio only.
     */
-    void OrxonoxOverlay::windowResized(int newWidth, int newHeight)
+    void OrxonoxOverlay::windowResized(unsigned int newWidth, unsigned int newHeight)
     {
         this->windowAspectRatio_ = newWidth/(float)newHeight;
Index: code/branches/gui/src/orxonox/overlays/OrxonoxOverlay.h
===================================================================
--- code/branches/gui/src/orxonox/overlays/OrxonoxOverlay.h	(revision 2800)
+++ code/branches/gui/src/orxonox/overlays/OrxonoxOverlay.h	(revision 2801)
@@ -200,5 +200,5 @@
 
     private:
-        void windowResized(int newWidth, int newHeight);
+        void windowResized(unsigned int newWidth, unsigned int newHeight);
 
         static unsigned int hudOverlayCounter_s;   //!< Static counter for hud elements
Index: code/branches/gui/src/orxonox/overlays/console/InGameConsole.cc
===================================================================
--- code/branches/gui/src/orxonox/overlays/console/InGameConsole.cc	(revision 2800)
+++ code/branches/gui/src/orxonox/overlays/console/InGameConsole.cc	(revision 2801)
@@ -410,5 +410,5 @@
         @brief Resizes the console elements. Call if window size changes.
     */
-    void InGameConsole::windowResized(int newWidth, int newHeight)
+    void InGameConsole::windowResized(unsigned int newWidth, unsigned int newHeight)
     {
         this->windowW_ = newWidth;
Index: code/branches/gui/src/orxonox/overlays/console/InGameConsole.h
===================================================================
--- code/branches/gui/src/orxonox/overlays/console/InGameConsole.h	(revision 2800)
+++ code/branches/gui/src/orxonox/overlays/console/InGameConsole.h	(revision 2801)
@@ -81,5 +81,5 @@
         void print(const std::string& text, int index, bool alwaysShift = false);
 
-        void windowResized(int newWidth, int newHeight);
+        void windowResized(unsigned int newWidth, unsigned int newHeight);
 
         // config value related
Index: code/branches/gui/src/orxonox/overlays/debug/DebugFPSText.cc
===================================================================
--- code/branches/gui/src/orxonox/overlays/debug/DebugFPSText.cc	(revision 2800)
+++ code/branches/gui/src/orxonox/overlays/debug/DebugFPSText.cc	(revision 2801)
@@ -31,5 +31,5 @@
 #include <OgreTextAreaOverlayElement.h>
 #include "core/CoreIncludes.h"
-#include "GraphicsEngine.h"
+#include "GraphicsManager.h"
 #include "util/Convert.h"
 
@@ -51,5 +51,5 @@
         SUPER(DebugFPSText, tick, dt);
 
-        float fps = GraphicsEngine::getInstance().getAverageFramesPerSecond();
+        float fps = GraphicsManager::getInstance().getAverageFramesPerSecond();
         this->setCaption(convertToString(fps));
     }
Index: code/branches/gui/src/orxonox/overlays/debug/DebugRTRText.cc
===================================================================
--- code/branches/gui/src/orxonox/overlays/debug/DebugRTRText.cc	(revision 2800)
+++ code/branches/gui/src/orxonox/overlays/debug/DebugRTRText.cc	(revision 2801)
@@ -32,5 +32,5 @@
 #include "core/CoreIncludes.h"
 #include "util/Convert.h"
-#include "GraphicsEngine.h"
+#include "GraphicsManager.h"
 
 namespace orxonox
@@ -51,5 +51,5 @@
         SUPER(DebugRTRText, tick, dt);
 
-        float rtr = GraphicsEngine::getInstance().getAverageTickTime();
+        float rtr = GraphicsManager::getInstance().getAverageTickTime();
         this->setCaption(convertToString(rtr));
     }
