From: John Tsiombikas Date: Sun, 1 Sep 2019 14:41:05 +0000 (+0300) Subject: hide the cursor in fullscreen X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=censuslogo;a=commitdiff_plain;ds=sidebyside hide the cursor in fullscreen --- diff --git a/src/main.c b/src/main.c index ad6c66e..b5e1f5e 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }