X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_menu.c;h=fdc827b518e8dfaaca646eb6a6032760d5ccb52d;hb=b1ed93dd348f7b8f3bd2c75474f5d4151d502f1f;hp=daad294a7ee64a5289ca524da9739eb0b1be38a6;hpb=226cd5ccd0f86cc1f2741e686fcf8e4846acf867;p=freeglut diff --git a/src/fg_menu.c b/src/fg_menu.c index daad294..fdc827b 100644 --- a/src/fg_menu.c +++ b/src/fg_menu.c @@ -135,7 +135,7 @@ static void fghDeactivateSubMenu( SFG_MenuEntry *menuEntry ) static GLvoid fghGetVMaxExtent( SFG_Window* window, int* x, int* y ) { if( fgStructure.GameModeWindow ) - fgPlatformGetGameModeVMaxExtent ( window, x, y ); + fgPlatformGetGameModeVMaxExtent ( window, x, y ); else { *x = fgDisplay.ScreenWidth; @@ -784,10 +784,10 @@ int FGAPIENTRY glutCreateMenuUcall( FGCBMenuUC callback, FGCBUserData userData ) { /* The menu object creation code resides in fg_structure.c */ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutCreateMenuUcall" ); - if (fgState.ActiveMenus) - { - fgError( "Menu manipulation not allowed while menus in use." ); - } + if (fgState.ActiveMenus) + { + fgError( "Menu manipulation not allowed while menus in use." ); + } return fgCreateMenu( callback, userData )->ID; }