projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
to check for menu opening/closing upon button press, should pass cursor position...
[freeglut]
/
src
/
x11
/
fg_main_x11.c
diff --git
a/src/x11/fg_main_x11.c
b/src/x11/fg_main_x11.c
index
c803b2b
..
cc57185
100644
(file)
--- 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;
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 );
glutPostRedisplay( );
if( window->IsMenu )
fgSetWindow( current_window );
@@
-846,7
+840,7
@@
void fgPlatformProcessSingleEvent ( void )
* private call should be generated.
*/
if( fgCheckActiveMenu( window, button, pressed,
* 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;
/*
break;
/*