projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now have a default reshape callback function that is used if the user didn't set...
[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
..
0bf967d
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 );