X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_structure.c;h=3b3032d09300ad1b6d82018f5e6e0bc6eb0e3a16;hb=92f148dcffee96fc7f90ef4f947b388d39ef320c;hp=3a9c86372ffba9849a8c8653c0767008bb75fc11;hpb=65e03872c287ab34ae76bd1831a3786d5e986b72;p=freeglut diff --git a/src/freeglut_structure.c b/src/freeglut_structure.c index 3a9c863..3b3032d 100644 --- a/src/freeglut_structure.c +++ b/src/freeglut_structure.c @@ -110,6 +110,9 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, window->IsMenu = isMenu; + window->State.IgnoreKeyRepeat = GL_FALSE; + window->State.KeyRepeating = GL_FALSE; + /* * Open the window now. The fgOpenWindow() function is system * dependant, and resides in freeglut_window.c. Uses fgState. @@ -147,7 +150,7 @@ SFG_Menu* fgCreateMenu( FGCBMenu menuCallback ) * Create a window for the menu to reside in. */ - fgCreateWindow( NULL, NULL, x, y, w, h, GL_FALSE, GL_TRUE ); + fgCreateWindow( NULL, "freeglut menu", x, y, w, h, GL_FALSE, GL_TRUE ); menu->Window = fgStructure.Window; glutDisplayFunc( fgDisplayMenu ); @@ -405,7 +408,7 @@ void fgDestroyStructure( void ) */ while( fgStructure.Menus.First ) fgDestroyMenu( ( SFG_Menu * )fgStructure.Menus.First ); - + while( fgStructure.Windows.First ) fgDestroyWindow( ( SFG_Window * )fgStructure.Windows.First ); }