X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_structure.c;fp=src%2Ffg_structure.c;h=1d6c3a6b9526e872ee61bbd0b17f5f6835969635;hb=26913c37ab4ecff6a3d43c1e1dfcd58141079e60;hp=d50063f52a44d43ea6489a20118724c3ecf49d92;hpb=d3740231230fad29ebda8d1a366d51bbb80536da;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index d50063f..1d6c3a6 100644 --- a/src/fg_structure.c +++ b/src/fg_structure.c @@ -113,7 +113,6 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, */ SFG_Menu* fgCreateMenu( FGCBMenu menuCallback ) { - int x = 100, y = 100, w = 1, h = 1; SFG_Window *current_window = fgStructure.CurrentWindow; /* Have the menu object created */ @@ -122,13 +121,11 @@ SFG_Menu* fgCreateMenu( FGCBMenu menuCallback ) menu->ParentWindow = NULL; /* Create a window for the menu to reside in. */ - - fgCreateWindow( NULL, "freeglut menu", GL_TRUE, x, y, GL_TRUE, w, h, + fgCreateWindow( NULL, "freeglut menu", GL_FALSE, 0, 0, GL_FALSE, 0, 0, GL_FALSE, GL_TRUE ); menu->Window = fgStructure.CurrentWindow; glutDisplayFunc( fgDisplayMenu ); - glutHideWindow( ); /* Hide the window for now */ fgSetWindow( current_window ); /* Initialize the object properties: */