X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_main.c;h=d934ccc88118d91ad52557b3aea1e7d46ec13831;hb=c926b36b4ed32b63b3dc5c50f4b98588fd23f0de;hp=475d317f6fb834417719317390dcbe343fffa8f1;hpb=eeb051cfb3087851e90f8cc81425a7e0b847cf88;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 475d317..d934ccc 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -125,8 +125,8 @@ static void fghReshapeWindowByHandle */ window->State.Redisplay = TRUE ; - if ( window->IsMenu ) - fgSetWindow ( current_window ) ; + if( window->IsMenu ) + fgSetWindow( current_window ) ; } /* @@ -169,11 +169,11 @@ static void fghcbDisplayWindow( SFG_Window *window, SFG_Enumerator *enumerator ) (window->State.Redisplay == TRUE) && (window->State.Visible == TRUE) ) { - window->State.Redisplay = FALSE; + window->State.Redisplay = FALSE; - RedrawWindow( - window->Window.Handle, NULL, NULL, - RDW_NOERASE | RDW_INTERNALPAINT | RDW_INVALIDATE | RDW_UPDATENOW + RedrawWindow( + window->Window.Handle, NULL, NULL, + RDW_NOERASE | RDW_INTERNALPAINT | RDW_INVALIDATE | RDW_UPDATENOW ); } @@ -484,6 +484,7 @@ void FGAPIENTRY glutMainLoopEvent( void ) } break; + case MapNotify: case UnmapNotify: /* * If we never do anything with this, can we just not ask to