projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
variable declaration in wrong place
[freeglut]
/
src
/
fg_misc.c
diff --git
a/src/fg_misc.c
b/src/fg_misc.c
index
5d192bf
..
d6a38e3
100644
(file)
--- a/
src/fg_misc.c
+++ b/
src/fg_misc.c
@@
-146,7
+146,7
@@
void FGAPIENTRY glutIgnoreKeyRepeat( int ignore )
/*
* Set global auto-repeat of keystrokes
*
/*
* Set global auto-repeat of keystrokes
*
- * RepeatMode should be either:
+ * RepeatMode should be any of:
* GLUT_KEY_REPEAT_OFF
* GLUT_KEY_REPEAT_ON
* GLUT_KEY_REPEAT_DEFAULT
* GLUT_KEY_REPEAT_OFF
* GLUT_KEY_REPEAT_ON
* GLUT_KEY_REPEAT_DEFAULT
@@
-158,10
+158,10
@@
void FGAPIENTRY glutSetKeyRepeat( int repeatMode )
switch( repeatMode )
{
case GLUT_KEY_REPEAT_OFF:
switch( repeatMode )
{
case GLUT_KEY_REPEAT_OFF:
- case GLUT_KEY_REPEAT_ON:
- fgState.KeyRepeat = repeatMode;
+ fgState.KeyRepeat = GLUT_KEY_REPEAT_OFF;
break;
break;
+ case GLUT_KEY_REPEAT_ON:
case GLUT_KEY_REPEAT_DEFAULT:
fgState.KeyRepeat = GLUT_KEY_REPEAT_ON;
break;
case GLUT_KEY_REPEAT_DEFAULT:
fgState.KeyRepeat = GLUT_KEY_REPEAT_ON;
break;