X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_state.c;h=580ff10f377fd4e5f4b876293c2e4f7b92fad58b;hb=9721970dce1ebac6b6bb3c7b0b84fdada7216270;hp=6a9387d6c1885e19ff717d26fd3c0da7e9d97450;hpb=05a61612c9b96b61ca9917def47eb59b7bd195c8;p=freeglut diff --git a/src/fg_state.c b/src/fg_state.c index 6a9387d..580ff10 100644 --- a/src/fg_state.c +++ b/src/fg_state.c @@ -61,9 +61,6 @@ void FGAPIENTRY glutSetOption( GLenum eWhat, int value ) { FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetOption" ); - /* - * XXX In chronological code add order. (WHY in that order?) - */ switch( eWhat ) { case GLUT_INIT_WINDOW_X: @@ -121,18 +118,6 @@ void FGAPIENTRY glutSetOption( GLenum eWhat, int value ) fgStructure.CurrentWindow->State.VisualizeNormals = value; break; - case GLUT_MENU_FONT: - { - void* fontID = (void*)value; - SFG_Font* font; - font = fghFontByID( fontID ); - if (!font) - fgWarning("glutSetOption(GLUT_MENU_FONT,...): bitmap font 0x%08x not found. Make sure you're not passing a stroke font. Ignoring...\n",fontID); - else - fgState.MenuFont = fontID; - } - break; - default: fgWarning( "glutSetOption(): missing enum handle %d", eWhat ); break; @@ -161,7 +146,6 @@ int FGAPIENTRY glutGet( GLenum eWhat ) FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutGet" ); - /* XXX In chronological code add order. (WHY in that order?) */ switch( eWhat ) { /* Following values are stored in fgState and fgDisplay global structures */