X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_misc.c;h=c6d6c1786b88e37566852bb19015a442cc099734;hb=207c3128bf025b5e025bace5c0425d380dd72aa9;hp=5d192bf9f0a459ce28dffbd12290abce165ab47f;hpb=1b5ee849ba61b667aeba474a7e03406196478bee;p=freeglut diff --git a/src/fg_misc.c b/src/fg_misc.c index 5d192bf..c6d6c17 100644 --- a/src/fg_misc.c +++ b/src/fg_misc.c @@ -1,5 +1,5 @@ /* - * freeglut_misc.c + * fg_misc.c * * Functions that didn't fit anywhere else... * @@ -146,7 +146,7 @@ void FGAPIENTRY glutIgnoreKeyRepeat( int ignore ) /* * 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 @@ -158,10 +158,10 @@ void FGAPIENTRY glutSetKeyRepeat( int repeatMode ) switch( repeatMode ) { case GLUT_KEY_REPEAT_OFF: - case GLUT_KEY_REPEAT_ON: - fgState.KeyRepeat = repeatMode; + fgState.KeyRepeat = GLUT_KEY_REPEAT_OFF; break; + case GLUT_KEY_REPEAT_ON: case GLUT_KEY_REPEAT_DEFAULT: fgState.KeyRepeat = GLUT_KEY_REPEAT_ON; break;