X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_main.c;h=95efa1834a225088df29e7c2cb566f67173f8252;hb=e914664550e34587f4b10d3fe52c61fbe6d61771;hp=d875e6a64dadc201f042479701cda49059120c17;hpb=852fcae6ab70ae3766672cf204150bc7c6edc5c8;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index d875e6a..95efa18 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -559,10 +559,6 @@ void FGAPIENTRY glutMainLoopEvent( void ) * (in freeglut only) will not get an initial reshape event, * which can break things. * - * XXX NOTE that it is possible that you will more than one Reshape - * XXX event for your top-level window, but something like this - * XXX appears to be required for compatbility. - * * GLUT presumably does this because it generally tries to treat * sub-windows the same as windows. */ @@ -573,11 +569,11 @@ void FGAPIENTRY glutMainLoopEvent( void ) int width = event.xconfigure.width; int height = event.xconfigure.height; - if( ( width != window->State.Width ) || - ( height != window->State.Height ) ) + if( ( width != window->State.OldWidth ) || + ( height != window->State.OldHeight ) ) { - window->State.Width = width; - window->State.Height = height; + window->State.OldWidth = width; + window->State.OldHeight = height; if( FETCH_WCB( *window, Reshape ) ) INVOKE_WCB( *window, Reshape, ( width, height ) ); else