X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_state.c;h=cc938924c3e85059f7db81d0fb37bc0f3e31e4d2;hb=2c12c9eb8d63cabac2d4113b4f54fdf53da8368c;hp=bb2e8f712bb1790059ea64490199db32a2d803a9;hpb=223d7dc01950904a061a1151955f24c4a098c3e4;p=freeglut diff --git a/src/fg_state.c b/src/fg_state.c index bb2e8f7..cc93892 100644 --- a/src/fg_state.c +++ b/src/fg_state.c @@ -1,5 +1,5 @@ /* - * freeglut_state.c + * fg_state.c * * Freeglut state query methods. * @@ -110,16 +110,16 @@ void FGAPIENTRY glutSetOption( GLenum eWhat, int value ) break; case GLUT_SKIP_STALE_MOTION_EVENTS: - fgState.SkipStaleMotion = value; + fgState.SkipStaleMotion = !!value; break; case GLUT_GEOMETRY_VISUALIZE_NORMALS: if( fgStructure.CurrentWindow != NULL ) - fgStructure.CurrentWindow->State.VisualizeNormals = value; + fgStructure.CurrentWindow->State.VisualizeNormals = !!value; break; case GLUT_STROKE_FONT_DRAW_JOIN_DOTS: - fgState.StrokeFontDrawJoinDots = value; + fgState.StrokeFontDrawJoinDots = !!value; break; default: @@ -229,7 +229,6 @@ int FGAPIENTRY glutGet( GLenum eWhat ) return fgPlatformGlutGet ( eWhat ); break; } - return -1; } /* @@ -289,9 +288,6 @@ int FGAPIENTRY glutDeviceGet( GLenum eWhat ) default: return fgPlatformGlutDeviceGet ( eWhat ); } - - /* And now -- the failure. */ - return -1; } /*