Style fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37752 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2010-07-26 08:19:19 +00:00
parent 45a167a94d
commit 924b42436f

View File

@ -370,17 +370,17 @@ void glutMainLoop()
void glutSetKeyRepeat(int repeatMode) void glutSetKeyRepeat(int repeatMode)
{ {
switch(repeatMode) { switch(repeatMode) {
case GLUT_KEY_REPEAT_DEFAULT: case GLUT_KEY_REPEAT_DEFAULT:
gState.keyRepeatMode = GLUT_KEY_REPEAT_ON; gState.keyRepeatMode = GLUT_KEY_REPEAT_ON;
break; break;
case GLUT_KEY_REPEAT_ON: case GLUT_KEY_REPEAT_ON:
case GLUT_KEY_REPEAT_OFF: case GLUT_KEY_REPEAT_OFF:
gState.keyRepeatMode = repeatMode; gState.keyRepeatMode = repeatMode;
break; break;
default: default:
__glutWarning("invalid glutSetKeyRepeat mode: %d", repeatMode); __glutWarning("invalid glutSetKeyRepeat mode: %d", repeatMode);
} }
} }
@ -406,8 +406,8 @@ void GlutWindow::KeyDown(const char *s, int32 slen)
BPoint p; BPoint p;
if (ignoreKeyRepeat && if (ignoreKeyRepeat
Window()->CurrentMessage()->FindInt32("be:key_repeat") > 0) && Window()->CurrentMessage()->FindInt32("be:key_repeat") > 0)
return; return;
switch (aChar) { switch (aChar) {