projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version bump in cmake, that should have been done for 3.2.0. Changed SO_MINOR
[freeglut]
/
src
/
fg_state.c
diff --git
a/src/fg_state.c
b/src/fg_state.c
index
8f0b3c9
..
4165daa
100644
(file)
--- a/
src/fg_state.c
+++ b/
src/fg_state.c
@@
-1,5
+1,5
@@
/*
/*
- * freeglut_state.c
+ * fg_state.c
*
* Freeglut state query methods.
*
*
* Freeglut state query methods.
*
@@
-122,6
+122,10
@@
void FGAPIENTRY glutSetOption( GLenum eWhat, int value )
fgState.StrokeFontDrawJoinDots = !!value;
break;
fgState.StrokeFontDrawJoinDots = !!value;
break;
+ case GLUT_ALLOW_NEGATIVE_WINDOW_POSITION:
+ fgState.AllowNegativeWindowPosition = !!value;
+ break;
+
default:
fgWarning( "glutSetOption(): missing enum handle %d", eWhat );
break;
default:
fgWarning( "glutSetOption(): missing enum handle %d", eWhat );
break;
@@
-225,6
+229,9
@@
int FGAPIENTRY glutGet( GLenum eWhat )
case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
return fgState.StrokeFontDrawJoinDots;
case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
return fgState.StrokeFontDrawJoinDots;
+ case GLUT_ALLOW_NEGATIVE_WINDOW_POSITION:
+ return fgState.AllowNegativeWindowPosition;
+
default:
return fgPlatformGlutGet ( eWhat );
break;
default:
return fgPlatformGlutGet ( eWhat );
break;
@@
-263,7
+270,7
@@
int FGAPIENTRY glutDeviceGet( GLenum eWhat )
case GLUT_NUM_DIALS:
if ( fgState.InputDevsInitialised ) return 8;
return 0;
case GLUT_NUM_DIALS:
if ( fgState.InputDevsInitialised ) return 8;
return 0;
-
+
case GLUT_NUM_BUTTON_BOX_BUTTONS:
return 0;
case GLUT_NUM_BUTTON_BOX_BUTTONS:
return 0;
@@
-286,7
+293,7
@@
int FGAPIENTRY glutDeviceGet( GLenum eWhat )
return fgState.KeyRepeat;
default:
return fgState.KeyRepeat;
default:
- return fgPlatformGlutDeviceGet ( eWhat );
+ return fgPlatformGlutDeviceGet ( eWhat );
}
}
}
}