]> git.mxchange.org Git - flightgear.git/commitdiff
Remove obsolete version test.
authorfrohlich <frohlich>
Sat, 5 Sep 2009 11:01:41 +0000 (11:01 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 9 Sep 2009 06:56:31 +0000 (08:56 +0200)
Modified Files:
src/Main/fg_os_osgviewer.cxx

src/Main/fg_os_osgviewer.cxx

index 66d2622a8a0e93c3148b056c3948b807721f2905..3287e702332a0ab872de5ffb15592758d83f4965 100644 (file)
 #include "WindowBuilder.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
 // 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)
 {
     if (!camera)
@@ -245,18 +240,15 @@ static void setMouseCursor(osg::Camera* camera, int cursor)
 
     gw->setCursor(mouseCursor);
 }
-#endif
 
 static int _cursor = -1;
 
 void fgSetMouseCursor(int cursor)
 {
     _cursor = cursor;
-#ifdef OSG_HAS_MOUSE_CURSOR_PATCH
     setMouseCursor(viewer->getCamera(), cursor);
     for (unsigned i = 0; i < viewer->getNumSlaves(); ++i)
         setMouseCursor(viewer->getSlave(i)._camera.get(), cursor);
-#endif
 }
 
 int fgGetMouseCursor()