X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_structure.c;h=c5a2d734ed28f0632e053ac00346e84e11b77046;hb=2badda80f21aaceb769a75861b52642e276e2e80;hp=c1b9145dec603040bfff63bbff94204ae4d4eb34;hpb=30971e75717f3d7b826714fbbb1171dfaf9164cf;p=freeglut diff --git a/src/freeglut_structure.c b/src/freeglut_structure.c index c1b9145..c5a2d73 100644 --- a/src/freeglut_structure.c +++ b/src/freeglut_structure.c @@ -79,7 +79,9 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, /* Initialize the object properties */ window->ID = ++fgStructure.WindowID; +#if TARGET_HOST_POSIX_X11 window->State.OldHeight = window->State.OldWidth = -1; +#endif fgListInit( &window->Children ); if( parent ) @@ -97,6 +99,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 +116,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 */