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
/
fg_main.c
diff --git
a/src/fg_main.c
b/src/fg_main.c
index
f6a94a6
..
9acfc31
100644
(file)
--- a/
src/fg_main.c
+++ b/
src/fg_main.c
@@
-74,13
+74,7
@@
static void fghReshapeWindow ( SFG_Window *window, int width, int height )
fgPlatformReshapeWindow ( window, width, height );
fgPlatformReshapeWindow ( window, width, 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 ) );
/*
* Force a window redraw. In Windows at least this is only a partial
/*
* Force a window redraw. In Windows at least this is only a partial