X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_state.c;h=4165daa98c09ca6f814c3e1c6935ff008bde0ead;hb=bc3bd114b6cd0399c22bff5bd99de60747b1070d;hp=cc938924c3e85059f7db81d0fb37bc0f3e31e4d2;hpb=67f242b7dd68bea7dea467f9b5265c8448b6655e;p=freeglut diff --git a/src/fg_state.c b/src/fg_state.c index cc93892..4165daa 100644 --- a/src/fg_state.c +++ b/src/fg_state.c @@ -122,6 +122,10 @@ void FGAPIENTRY glutSetOption( GLenum eWhat, int value ) fgState.StrokeFontDrawJoinDots = !!value; break; + case GLUT_ALLOW_NEGATIVE_WINDOW_POSITION: + fgState.AllowNegativeWindowPosition = !!value; + 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_ALLOW_NEGATIVE_WINDOW_POSITION: + return fgState.AllowNegativeWindowPosition; + 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_BUTTON_BOX_BUTTONS: return 0; @@ -286,7 +293,7 @@ int FGAPIENTRY glutDeviceGet( GLenum eWhat ) return fgState.KeyRepeat; default: - return fgPlatformGlutDeviceGet ( eWhat ); + return fgPlatformGlutDeviceGet ( eWhat ); } }