fgProcessWork, not fgPlatformProcessWork
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1618 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
6e7e3375a3
commit
59a8038d1c
@ -465,7 +465,7 @@ void fgPlatformProcessSingleEvent ( void )
|
|||||||
* be not possible to ensure InitContext CB gets called before
|
* be not possible to ensure InitContext CB gets called before
|
||||||
* Resume CB like that.. so maybe just force calling initContext CB
|
* Resume CB like that.. so maybe just force calling initContext CB
|
||||||
* here is best. Or we could force work on the window in question..
|
* here is best. Or we could force work on the window in question..
|
||||||
* 1) save old work mask, 2) set mask to init only, 3) call fgPlatformProcessWork directly
|
* 1) save old work mask, 2) set mask to init only, 3) call fgProcessWork directly
|
||||||
* 4) set work mask back to the one saved in step 1.
|
* 4) set work mask back to the one saved in step 1.
|
||||||
*/
|
*/
|
||||||
if (!FETCH_WCB(*window, InitContext))
|
if (!FETCH_WCB(*window, InitContext))
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
# define MIN(a,b) (((a)<(b)) ? (a) : (b))
|
# define MIN(a,b) (((a)<(b)) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void fgPlatformProcessWork ( SFG_Window *window );
|
extern void fgProcessWork ( SFG_Window *window );
|
||||||
extern fg_time_t fgPlatformSystemTime ( void );
|
extern fg_time_t fgPlatformSystemTime ( void );
|
||||||
extern void fgPlatformSleepForEvents( fg_time_t msec );
|
extern void fgPlatformSleepForEvents( fg_time_t msec );
|
||||||
extern void fgPlatformProcessSingleEvent ( void );
|
extern void fgPlatformProcessSingleEvent ( void );
|
||||||
@ -163,7 +163,7 @@ static void fghcbProcessWork( SFG_Window *window,
|
|||||||
SFG_Enumerator *enumerator )
|
SFG_Enumerator *enumerator )
|
||||||
{
|
{
|
||||||
if( window->State.WorkMask )
|
if( window->State.WorkMask )
|
||||||
fgPlatformProcessWork ( window );
|
fgProcessWork ( window );
|
||||||
|
|
||||||
fgEnumSubWindows( window, fghcbProcessWork, enumerator );
|
fgEnumSubWindows( window, fghcbProcessWork, enumerator );
|
||||||
}
|
}
|
||||||
@ -393,7 +393,7 @@ static void fghSleepForEvents( void )
|
|||||||
|
|
||||||
|
|
||||||
/* Step through the work list */
|
/* Step through the work list */
|
||||||
void fgPlatformProcessWork(SFG_Window *window)
|
void fgProcessWork(SFG_Window *window)
|
||||||
{
|
{
|
||||||
unsigned int workMask = window->State.WorkMask;
|
unsigned int workMask = window->State.WorkMask;
|
||||||
/* Now clear it so that any callback generated by the actions below can set work again */
|
/* Now clear it so that any callback generated by the actions below can set work again */
|
||||||
|
Reference in New Issue
Block a user