From e184bd861c0b3023c5fd5596083e12aaedb2d5e2 Mon Sep 17 00:00:00 2001 From: Sean D'Epagnier Date: Sun, 24 Sep 2006 10:57:26 +0000 Subject: corrected cursor drawing added handling of SIGWINCH fixed input of recieving SIGIO while handling SIGIO corrected input code for return uncommented normal calculation to models --- src/glut/fbdev/cursor.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/glut/fbdev/cursor.c') 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(); } -- cgit v1.2.3