hide the cursor in fullscreen
[censuslogo] / src / main.c
index ad6c66e..b5e1f5e 100644 (file)
@@ -48,6 +48,7 @@ int main(int argc, char **argv)
 
        if(fullscr) {
                glutFullScreen();
+               glutSetCursor(GLUT_CURSOR_NONE);
        }
 
        glutDisplayFunc(display);
@@ -218,8 +219,10 @@ void keyb(unsigned char key, int x, int y)
                        saved_width = win_width;
                        saved_height = win_height;
                        glutFullScreen();
+                       glutSetCursor(GLUT_CURSOR_NONE);
                } else {
                        glutReshapeWindow(saved_width, saved_height);
+                       glutSetCursor(GLUT_CURSOR_INHERIT);
                }
                break;
        }