Corrected a bug w.r.t. display and joystick events. When getting ready

to sleep, we need to go through ALL windows to check for pending joysticks
and to check for pending redisplays.  I was just going through all TOP-
LEVEL windows.  Eeek.  This won't do.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@205 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
rkrolib 2003-09-24 06:26:36 +00:00
parent 29a1cf87af
commit 34a43b6ae5

View File

@ -445,6 +445,7 @@ static void fgCheckJoystickCallback( SFG_Window* w, SFG_Enumerator* e)
e->found = TRUE;
e->data = w;
}
fgEnumSubWindows( w, fgCheckJoystickCallback, e );
}
static int fgHaveJoystick( void )
{
@ -461,6 +462,7 @@ static void fgHavePendingRedisplaysCallback( SFG_Window* w, SFG_Enumerator* e)
e->found = TRUE;
e->data = w;
}
fgEnumSubWindows( w, fgHavePendingRedisplaysCallback, e );
}
static int fgHavePendingRedisplays (void)
{