implemented glutSetIconTitle that works on win32, when a window is
[freeglut] / src / fg_structure.c
index 8a5b4f5..88b2614 100644 (file)
@@ -92,14 +92,17 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
 
     /* Set the default mouse cursor and reset the modifiers value */
     window->State.Cursor    = GLUT_CURSOR_INHERIT;
-
-    window->IsMenu = isMenu;
-
+    
     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;
+
+    window->IsMenu = isMenu;
+
     /*
      * Open the window now. The fgOpenWindow() function is system
      * dependant, and resides in freeglut_window.c. Uses fgState.