X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fx11%2Ffg_main_x11.c;h=cc571858bee396239c42b0a841101fea273702eb;hb=4934c772982075dd265cab06d5651c80245626c4;hp=c803b2b0d733378ca8b155c36b6a6b9cc91e99e9;hpb=b08e8e8fbedd2df556da4897b1473ac26270cb48;p=freeglut diff --git a/src/x11/fg_main_x11.c b/src/x11/fg_main_x11.c index c803b2b..cc57185 100644 --- a/src/x11/fg_main_x11.c +++ b/src/x11/fg_main_x11.c @@ -662,13 +662,7 @@ void fgPlatformProcessSingleEvent ( void ) window->State.pWState.OldWidth = width; window->State.pWState.OldHeight = height; - if( FETCH_WCB( *window, Reshape ) ) - INVOKE_WCB( *window, Reshape, ( width, height ) ); - else - { - fgSetWindow( window ); - glViewport( 0, 0, width, height ); - } + INVOKE_WCB( *window, Reshape, ( width, height ) ); glutPostRedisplay( ); if( window->IsMenu ) fgSetWindow( current_window ); @@ -846,7 +840,7 @@ void fgPlatformProcessSingleEvent ( void ) * private call should be generated. */ if( fgCheckActiveMenu( window, button, pressed, - event.xbutton.x_root, event.xbutton.y_root ) ) + event.xbutton.x, event.xbutton.y ) ) break; /*