From 205edcf2977cb157ab0074358362c7da3898b82b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 14 Jun 2010 15:28:58 +0000 Subject: [PATCH] From Jean-Sebastien Guay, "Currently, if a GraphicsWindowWin32 is created with traits->useCursor = false, it still shows the cursor. An app must call gw->useCursor(false) after having created the context as a workaround, but I think what we ask for in the traits should be honored... Attached is a simple fix for this. I have no idea when this stopped working. It worked before in our 2.6.0-based apps but after the upgrade to 2.8.3 it doesn't anymore. " --- src/osgViewer/GraphicsWindowWin32.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index 0a8a2bf7f..5a429b3a9 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -1053,6 +1053,7 @@ GraphicsWindowWin32::GraphicsWindowWin32( osg::GraphicsContext::Traits* traits ) { _traits = traits; if (_traits->useCursor) setCursor(LeftArrowCursor); + else setCursor(NoCursor); init();