|
|
| |
|
|
XCreateFontCursor( fgDisplay.Display, entry->cursorShape); | XCreateFontCursor( fgDisplay.Display, entry->cursorShape); |
} | } |
cursor = entry->cachedCursor; | cursor = entry->cachedCursor; |
} else { |
if (cursor == None) |
|
fgError( "Failed to create cursor" ); |
|
} else { |
switch( cursorIDToUse ) | switch( cursorIDToUse ) |
{ | { |
case GLUT_CURSOR_NONE: | case GLUT_CURSOR_NONE: |
|
|
} | } |
} | } |
if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) ) { |
|
fgError( "Failed to create cursor" ); |
|
} |
|
XDefineCursor( fgDisplay.Display, | XDefineCursor( fgDisplay.Display, |
window->Window.Handle, cursor ); | window->Window.Handle, cursor ); |
} | } |