From fb6f3cd82614caeaf95be52f9e71f11d32621bfe Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Wed, 27 Feb 2013 04:44:14 +0000 Subject: [PATCH] clean up glutSetKeyRepeat function body git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1513 7f0cb862-5218-0410-a997-914c9d46530a --- src/fg_misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fg_misc.c b/src/fg_misc.c index 5d192bf..d6a38e3 100644 --- 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 * - * 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; -- 1.7.10.4