(293) Improve autoconf magic: To detect headers like GL/gl.h, it might be
necessary to temporarily use the X11 flags found by AC_PATH_XTRA.
+
+(294) Fixed the GLUT_CURSOR_INHERIT logic once again...
}
}
- if ( cursorIDToUse == GLUT_CURSOR_INHERIT )
+ if ( cursorIDToUse == GLUT_CURSOR_INHERIT ) {
XUndefineCursor( fgDisplay.Display, window->Window.Handle );
- if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) )
+ } else if ( cursor != None ) {
+ XDefineCursor( fgDisplay.Display, window->Window.Handle, cursor );
+ } else if ( cursorIDToUse != GLUT_CURSOR_NONE ) {
fgError( "Failed to create cursor" );
- else
- XDefineCursor( fgDisplay.Display,
- window->Window.Handle, cursor );
+ }
}
#elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE