X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_structure.c;h=e7790379e0d5a48d1f97842c9f5225c8ebf057ca;hb=0ad162e4550450e4c5e0d930e564e88d1a197575;hp=8a5b4f5c1d573487a73dc3f27f343c1f5560c08e;hpb=ea5dc8a10beb55cd972c34d6b531158101b6773f;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index 8a5b4f5..e779037 100644 --- a/src/fg_structure.c +++ b/src/fg_structure.c @@ -72,7 +72,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, GLboolean gameMode, GLboolean isMenu ) { /* Have the window object created */ - SFG_Window *window = (SFG_Window *)calloc( sizeof(SFG_Window), 1 ); + SFG_Window *window = (SFG_Window *)calloc( 1, sizeof(SFG_Window) ); fgPlatformCreateWindow ( window ); @@ -90,16 +90,12 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, else fgListAppend( &fgStructure.Windows, &window->Node ); - /* Set the default mouse cursor and reset the modifiers value */ + /* Set the default mouse cursor */ window->State.Cursor = GLUT_CURSOR_INHERIT; + /* Mark window as menu if a menu is to be created */ window->IsMenu = isMenu; - window->State.IgnoreKeyRepeat = GL_FALSE; - window->State.KeyRepeating = GL_FALSE; - window->State.IsFullscreen = GL_FALSE; - window->State.VisualizeNormals= GL_FALSE; - /* * Open the window now. The fgOpenWindow() function is system * dependant, and resides in freeglut_window.c. Uses fgState.