Remove obsolete version test.
Modified Files: src/Main/fg_os_osgviewer.cxx
This commit is contained in:
parent
4e7b084568
commit
d9d725f28d
1 changed files with 0 additions and 8 deletions
|
@ -59,10 +59,6 @@
|
||||||
#include "WindowBuilder.hxx"
|
#include "WindowBuilder.hxx"
|
||||||
#include "WindowSystemAdapter.hxx"
|
#include "WindowSystemAdapter.hxx"
|
||||||
|
|
||||||
#if (FG_OSG_VERSION >= 19008)
|
|
||||||
#define OSG_HAS_MOUSE_CURSOR_PATCH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// fg_os implementation using OpenSceneGraph's osgViewer::Viewer class
|
// fg_os implementation using OpenSceneGraph's osgViewer::Viewer class
|
||||||
// to create the graphics window and run the event/update/render loop.
|
// to create the graphics window and run the event/update/render loop.
|
||||||
|
|
||||||
|
@ -201,7 +197,6 @@ void fgOSFullScreen()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OSG_HAS_MOUSE_CURSOR_PATCH
|
|
||||||
static void setMouseCursor(osg::Camera* camera, int cursor)
|
static void setMouseCursor(osg::Camera* camera, int cursor)
|
||||||
{
|
{
|
||||||
if (!camera)
|
if (!camera)
|
||||||
|
@ -245,18 +240,15 @@ static void setMouseCursor(osg::Camera* camera, int cursor)
|
||||||
|
|
||||||
gw->setCursor(mouseCursor);
|
gw->setCursor(mouseCursor);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static int _cursor = -1;
|
static int _cursor = -1;
|
||||||
|
|
||||||
void fgSetMouseCursor(int cursor)
|
void fgSetMouseCursor(int cursor)
|
||||||
{
|
{
|
||||||
_cursor = cursor;
|
_cursor = cursor;
|
||||||
#ifdef OSG_HAS_MOUSE_CURSOR_PATCH
|
|
||||||
setMouseCursor(viewer->getCamera(), cursor);
|
setMouseCursor(viewer->getCamera(), cursor);
|
||||||
for (unsigned i = 0; i < viewer->getNumSlaves(); ++i)
|
for (unsigned i = 0; i < viewer->getNumSlaves(); ++i)
|
||||||
setMouseCursor(viewer->getSlave(i)._camera.get(), cursor);
|
setMouseCursor(viewer->getSlave(i)._camera.get(), cursor);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int fgGetMouseCursor()
|
int fgGetMouseCursor()
|
||||||
|
|
Loading…
Add table
Reference in a new issue