[Orxonox-commit 767] r3294 - branches/core4/src/orxonox

rgrieder at orxonox.net rgrieder at orxonox.net
Tue Jul 14 15:56:50 CEST 2009


Author: rgrieder
Date: 2009-07-14 15:56:50 +0200 (Tue, 14 Jul 2009)
New Revision: 3294

Modified:
   branches/core4/src/orxonox/GraphicsManager.cc
Log:
Bugfix: windowResized() was not called upon render window creation. This stores the window size.

Modified: branches/core4/src/orxonox/GraphicsManager.cc
===================================================================
--- branches/core4/src/orxonox/GraphicsManager.cc	2009-07-14 12:19:57 UTC (rev 3293)
+++ branches/core4/src/orxonox/GraphicsManager.cc	2009-07-14 13:56:50 UTC (rev 3294)
@@ -72,8 +72,9 @@
 {
     using boost::shared_ptr;
 
-    class _OrxonoxExport OgreWindowEventListener : public Ogre::WindowEventListener
+    class OgreWindowEventListener : public Ogre::WindowEventListener
     {
+    public:
         void windowResized     (Ogre::RenderWindow* rw)
             { orxonox::WindowEventListener::resizeWindow(rw->getWidth(), rw->getHeight()); }
         void windowFocusChange (Ogre::RenderWindow* rw)
@@ -350,6 +351,7 @@
         CCOUT(4) << "Creating render window" << std::endl;
 
         this->renderWindow_ = ogreRoot_->initialise(true, "Orxonox");
+        this->ogreWindowEventListener_->windowResized(renderWindow_);
 
         Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_);
 




More information about the Orxonox-commit mailing list