projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Hopefully I did THIS one right (used 'cvs update' to Merge)
[freeglut]
/
freeglut-1.3
/
freeglut_state.c
diff --git
a/freeglut-1.3/freeglut_state.c
b/freeglut-1.3/freeglut_state.c
index
7116869
..
6a13db4
100644
(file)
--- a/
freeglut-1.3/freeglut_state.c
+++ b/
freeglut-1.3/freeglut_state.c
@@
-122,11
+122,11
@@
void FGAPIENTRY glutSetOption( GLenum eWhat, int value )
*/
int FGAPIENTRY glutGet( GLenum eWhat )
{
*/
int FGAPIENTRY glutGet( GLenum eWhat )
{
- int returnValue ;
- GLboolean boolValue ;
+ int returnValue ;
+ GLboolean boolValue ;
- if ( eWhat == GLUT_INIT_STATE )
- return ( fgState.Time.Set ) ;
+ if ( eWhat == GLUT_INIT_STATE )
+ return ( fgState.Time.Set ) ;
freeglut_assert_ready;
freeglut_assert_ready;
@@
-450,7
+450,11
@@
int FGAPIENTRY glutGet( GLenum eWhat )
return( fgListLength( &fgStructure.Menu->Entries ) );
return( fgListLength( &fgStructure.Menu->Entries ) );
- case GLUT_ACTION_ON_WINDOW_CLOSE: return ( fgState.ActionOnWindowClose ) ;
+ case GLUT_ACTION_ON_WINDOW_CLOSE:
+ return fgState.ActionOnWindowClose;
+
+ case GLUT_VERSION:
+ return VERSION_MAJOR * 10000 + VERSION_MINOR * 100 + VERSION_PATCH;
default:
/*
default:
/*