X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_structure.c;h=ce3869b384a1c4ed9e8b012f66b4f811d6eaea92;hb=b0e5b06bca36a249ecba1716e73ef126075a1e04;hp=1d064b68bd96461d28780bb281194a31de5bc52d;hpb=1b9a554a58e5595d9512540df60a3d681dc784a9;p=freeglut diff --git a/src/freeglut_structure.c b/src/freeglut_structure.c index 1d064b6..ce3869b 100644 --- a/src/freeglut_structure.c +++ b/src/freeglut_structure.c @@ -97,6 +97,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, window->State.IgnoreKeyRepeat = GL_FALSE; window->State.KeyRepeating = GL_FALSE; + window->State.IsFullscreen = GL_FALSE; /* * Open the window now. The fgOpenWindow() function is system @@ -113,7 +114,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, */ SFG_Menu* fgCreateMenu( FGCBMenu menuCallback ) { - int x = 100, y = 100, w = 100, h = 100; + int x = 100, y = 100, w = 1, h = 1; SFG_Window *current_window = fgStructure.CurrentWindow; /* Have the menu object created */ @@ -219,12 +220,6 @@ void fgDestroyWindow( SFG_Window* window ) fghClearCallBacks( window ); fgCloseWindow( window ); -#if TARGET_HOST_UNIX_X11 - if (window->Window.FBConfig != NULL) - { - XFree( window->Window.FBConfig ); - } -#endif free( window ); if( fgStructure.CurrentWindow == window ) fgStructure.CurrentWindow = NULL;