updated docs for fgPlatformMainLoopPreliminaryWork
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1537 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
1d9ec8e1e9
commit
6d9e4fdb30
@ -138,7 +138,7 @@ static void fghUpdateWindowStatus(SFG_Window *window, GLboolean visState)
|
|||||||
INVOKE_WCB( *window, WindowStatus, ( visState ? GLUT_FULLY_RETAINED:GLUT_HIDDEN ) );
|
INVOKE_WCB( *window, WindowStatus, ( visState ? GLUT_FULLY_RETAINED:GLUT_HIDDEN ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Also notify children */
|
/* Also set visibility state for children */
|
||||||
for( child = ( SFG_Window * )window->Children.First;
|
for( child = ( SFG_Window * )window->Children.First;
|
||||||
child;
|
child;
|
||||||
child = ( SFG_Window * )child->Node.Next )
|
child = ( SFG_Window * )child->Node.Next )
|
||||||
@ -168,12 +168,13 @@ void fgPlatformMainLoopPreliminaryWork ( void )
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Processing before the main loop: If there is a window which is open and
|
* Processing before the main loop: If there is a window which is open and
|
||||||
* which has a visibility callback, call it. I know this is an ugly hack,
|
* which has a visibility/windowStatus callback, call it to inform the client
|
||||||
* but I'm not sure what else to do about it. Ideally we should leave
|
* code that the window is visible. I know this is an ugly hack,
|
||||||
* something uninitialized in the create window code and initialize it in
|
* but I'm not sure what else to do about it. Depending on WM_ACTIVATE would
|
||||||
* the main loop, and have that initialization create a "WM_ACTIVATE"
|
* not work as not all windows get this when you are opening multiple before
|
||||||
* message. Then we would put the visibility callback code in the
|
* the mainloop starts. WM_SHOWWINDOW looked like an interesting candidate, but
|
||||||
* "case WM_ACTIVATE" block below. - John Fay -- 10/24/02
|
* it is generated and processed before glutCreate(Sub)Window returns, so no
|
||||||
|
* callback can yet be set on the window.
|
||||||
*/
|
*/
|
||||||
while( window )
|
while( window )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user