Fixing a cursor bug in \"GLUT_CURSOR_INHERIT\"
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@677 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
fa640f9356
commit
322a290199
@ -147,9 +147,11 @@ void fgSetCursor ( SFG_Window *window, int cursorID )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) ) {
|
if ( cursorIDToUse == GLUT_CURSOR_INHERIT )
|
||||||
|
XUndefineCursor( fgDisplay.Display, window->Window.Handle );
|
||||||
|
if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) )
|
||||||
fgError( "Failed to create cursor" );
|
fgError( "Failed to create cursor" );
|
||||||
}
|
else
|
||||||
XDefineCursor( fgDisplay.Display,
|
XDefineCursor( fgDisplay.Display,
|
||||||
window->Window.Handle, cursor );
|
window->Window.Handle, cursor );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user