- if (workMask & GLUT_INIT_WORK)\r
- {\r
- /* notify windowStatus/visibility */\r
- INVOKE_WCB( *window, WindowStatus, ( GLUT_FULLY_RETAINED ) );\r
-\r
- /* Position callback, always at 0,0 */\r
- fghOnPositionNotify(window, 0, 0, GL_TRUE);\r
-\r
- /* Size gets notified on window creation with size detection in mainloop above\r
- * XXX CHECK: does this messages happen too early like on windows,\r
- * so client code cannot have registered a callback yet and the message\r
- * is thus never received by client?\r
- */\r
-\r
- /* Call init context callback */\r
- INVOKE_WCB( *window, InitContext, ());\r
-\r
- /* Lastly, check if we have a display callback, error out if not\r
- * This is the right place to do it, as the redisplay will be\r
- * next right after we exit this function, so there is no more\r
- * opportunity for the user to register a callback for this window.\r
- */\r
- if (!FETCH_WCB(*window, Display))\r
- fgError ( "ERROR: No display callback registered for window %d\n", window->ID );\r
- }\r