From a32a5ea319866d8bfa4d5a5e798efa139b7ad41f Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sun, 1 Sep 2019 17:41:05 +0300 Subject: [PATCH] hide the cursor in fullscreen --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 1.7.10.4