Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2009, 10:00:15 AM (16 years ago)
Author:
rgrieder
Message:

Replaced <OgrePrerequisites.h> with "util/OgreForwardRefs.h": I haven't yet realised that OgrePrerequisites.h includes about every single std header by including the OgreMemoryManager.h file.
And while at it, I took care of some type conversions (partially revealed by the missing OgrePrerequisites.h that disabled warnings)

Location:
code/branches/pch/src/orxonox/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/gui/GUIManager.cc

    r3153 r3192  
    395395    void GUIManager::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize)
    396396    {
    397         guiSystem_->injectMouseMove(rel.x, rel.y);
     397        guiSystem_->injectMouseMove(static_cast<float>(rel.x), static_cast<float>(rel.y));
    398398    }
    399399    void GUIManager::mouseScrolled(int abs, int rel)
    400400    {
    401         guiSystem_->injectMouseWheelChange(rel);
     401        guiSystem_->injectMouseWheelChange(static_cast<float>(rel));
    402402    }
    403403
  • code/branches/pch/src/orxonox/gui/GUIManager.h

    r3156 r3192  
    4141#include <map>
    4242#include <string>
    43 #include <OgrePrerequisites.h>
    4443#include <CEGUIForwardRefs.h>
    4544
     45#include "util/OgreForwardRefs.h"
    4646#include "core/input/InputInterfaces.h"
    4747
Note: See TracChangeset for help on using the changeset viewer.