OS X: Window is white while starting up (plus fix)
by Ken Pajala · in Torque Game Builder · 07/09/2006 (6:19 pm) · 2 replies
While starting up, the window stays white. CreateOpenGLWindow() attempts to paint the window black, but the change doesn't make it to screen until the window is given time to update itself which doesn't occur until after everything has started up.
The fix is simple, near the end of CreateOpenGLWindow(), after the line with "SetPort (savegp);", insert:
The fix is simple, near the end of CreateOpenGLWindow(), after the line with "SetPort (savegp);", insert:
ReceiveNextEvent(0, NULL, 0, false, NULL);That seems to solve the problem in the simplest manner.
#2
Our mac guy says you should get a cookie for this one, thanks a bunch! If it turns out this isn't some weird voodoo to make it work, he'll get it in there! :)
Cheers,
-Justin
07/12/2006 (1:33 pm)
Ken,Our mac guy says you should get a cookie for this one, thanks a bunch! If it turns out this isn't some weird voodoo to make it work, he'll get it in there! :)
Cheers,
-Justin
Torque Owner Don Schaper
XIX Software
You can find the place to insert the code in macCarbWindow.cc (line #945 in my Xcode project - if your line numbers are different, simply search the project for "SetPort (savegp);").