Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3294 for code


Ignore:
Timestamp:
Jul 14, 2009, 3:56:50 PM (15 years ago)
Author:
rgrieder
Message:

Bugfix: windowResized() was not called upon render window creation. This stores the window size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/orxonox/GraphicsManager.cc

    r3291 r3294  
    7373    using boost::shared_ptr;
    7474
    75     class _OrxonoxExport OgreWindowEventListener : public Ogre::WindowEventListener
    76     {
     75    class OgreWindowEventListener : public Ogre::WindowEventListener
     76    {
     77    public:
    7778        void windowResized     (Ogre::RenderWindow* rw)
    7879            { orxonox::WindowEventListener::resizeWindow(rw->getWidth(), rw->getHeight()); }
     
    351352
    352353        this->renderWindow_ = ogreRoot_->initialise(true, "Orxonox");
     354        this->ogreWindowEventListener_->windowResized(renderWindow_);
    353355
    354356        Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_);
Note: See TracChangeset for help on using the changeset viewer.