projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidy nested if/else to suppress gcc -Wall -pedantic noise
[freeglut]
/
src
/
freeglut_main.c
diff --git
a/src/freeglut_main.c
b/src/freeglut_main.c
index
16a6674
..
6375448
100644
(file)
--- a/
src/freeglut_main.c
+++ b/
src/freeglut_main.c
@@
-1377,11
+1377,14
@@
LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
break;
}
break;
}
- if( GetSystemMetrics( SM_SWAPBUTTON ) )
- if( button == GLUT_LEFT_BUTTON )
+ if ( GetSystemMetrics( SM_SWAPBUTTON ) )
+ {
+ if ( button == GLUT_LEFT_BUTTON )
button = GLUT_RIGHT_BUTTON;
button = GLUT_RIGHT_BUTTON;
- else if( button == GLUT_RIGHT_BUTTON )
+ else
+ if ( button == GLUT_RIGHT_BUTTON )
button = GLUT_LEFT_BUTTON;
button = GLUT_LEFT_BUTTON;
+ }
if( button == -1 )
return DefWindowProc( hWnd, uMsg, lParam, wParam );
if( button == -1 )
return DefWindowProc( hWnd, uMsg, lParam, wParam );