PUICamera Linux compilation fixes
* Correct the filename case in the #include directive in PUICamera.cxx, so that compilation succeeds on case-sensitive filesystems. * Add the PU_SCROLL_UP_BUTTON and PU_SCROLL_DOWN_BUTTON #defines, as they are missing from some systems which ship old versions of the PUI library.
This commit is contained in:
parent
c1df6e9d15
commit
89ca665bfb
2 changed files with 9 additions and 1 deletions
|
@ -43,6 +43,14 @@
|
|||
#include <Viewer/CameraGroup.hxx>
|
||||
#include <Viewer/FGEventHandler.hxx>
|
||||
|
||||
// Old versions of PUI are missing these defines
|
||||
#ifndef PU_SCROLL_UP_BUTTON
|
||||
#define PU_SCROLL_UP_BUTTON 3
|
||||
#endif
|
||||
#ifndef PU_SCROLL_DOWN_BUTTON
|
||||
#define PU_SCROLL_DOWN_BUTTON 4
|
||||
#endif
|
||||
|
||||
using namespace flightgear;
|
||||
|
||||
class PUIDrawable : public osg::Drawable
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(HAVE_PUI)
|
||||
#include <Viewer/puicamera.hxx>
|
||||
#include <Viewer/PUICamera.hxx>
|
||||
#endif
|
||||
|
||||
using namespace osg;
|
||||
|
|
Loading…
Reference in a new issue