X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffg_structure.c;h=be9d1ce5e9975f5a037394b67b3eb73fa013d14b;hb=bac05204a224d9cabe6b7d52c00d2e0601825cb4;hp=e7790379e0d5a48d1f97842c9f5225c8ebf057ca;hpb=1897e7e46186c5aa11700a72cb3331c1aabdb360;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index e779037..be9d1ce 100644 --- a/src/fg_structure.c +++ b/src/fg_structure.c @@ -49,6 +49,7 @@ SFG_Structure fgStructure = { { NULL, NULL }, /* The list of windows */ /* -- PRIVATE FUNCTIONS ---------------------------------------------------- */ extern void fgPlatformCreateWindow ( SFG_Window *window ); +extern void fghDefaultReshape(int width, int height); static void fghClearCallBacks( SFG_Window *window ) { @@ -77,6 +78,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, fgPlatformCreateWindow ( window ); fghClearCallBacks( window ); + SET_WCB( *window, Reshape, fghDefaultReshape); /* Initialize the object properties */ window->ID = ++fgStructure.WindowID; @@ -94,7 +96,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, window->State.Cursor = GLUT_CURSOR_INHERIT; /* Mark window as menu if a menu is to be created */ - window->IsMenu = isMenu; + window->IsMenu = isMenu; /* * Open the window now. The fgOpenWindow() function is system