diff options
Diffstat (limited to 'src/glut/fbdev/cursor.c')
-rw-r--r-- | src/glut/fbdev/cursor.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glut/fbdev/cursor.c b/src/glut/fbdev/cursor.c index 9254e125593..88386956a44 100644 --- a/src/glut/fbdev/cursor.c +++ b/src/glut/fbdev/cursor.c @@ -257,8 +257,12 @@ void glutSetCursor(int cursor) { if(cursor == GLUT_CURSOR_FULL_CROSSHAIR) cursor = GLUT_CURSOR_CROSSHAIR; + + if(CurrentCursor >= 0 && CurrentCursor < NUM_CURSORS) + EraseCursor(); + CurrentCursor = cursor; + MouseEnabled = 1; - EraseCursor(); SwapCursor(); } |