projects
/
censuslogo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba970dd
)
hide the cursor in fullscreen
master
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 1 Sep 2019 14:41:05 +0000
(17:41 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 1 Sep 2019 14:41:05 +0000
(17:41 +0300)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
ad6c66e
..
b5e1f5e
100644
(file)
--- 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;
}