X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_structure.c;h=e7790379e0d5a48d1f97842c9f5225c8ebf057ca;hb=4a451851ec51ea7c3b79534fa5faebadceedf4df;hp=88b26149d46f47027d93286b7acad2949aff899a;hpb=f0ba4e97608a444ae0a94e2408ed1a647ee38672;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index 88b2614..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,17 +90,10 @@ 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; - - window->State.IgnoreKeyRepeat = GL_FALSE; - window->State.KeyRepeating = GL_FALSE; - window->State.IsFullscreen = GL_FALSE; - window->State.VisualizeNormals= GL_FALSE; - - window->State.pWState.WindowTitle = NULL; - window->State.pWState.IconTitle = NULL; + /* Mark window as menu if a menu is to be created */ window->IsMenu = isMenu; /*