Game Development Community

Windowed mode problem on Mac

by Martin Andresen · in Torque Game Builder · 02/14/2008 (2:00 pm) · 5 replies

Hi,

I'm having a problem with TGB 1.7.2 on the Mac I hope someone can assist me with. Mac OS version is 10.5.2.

When changing from fullscreen to windowed mode a separate window is left opened on the desktop. TGB only draws in one of the windows and the game only quits when closing this window, the other window can also be closed, but this has no other effect. Has anyone else experienced this and knows how to fix it?

Martin

#1
02/21/2008 (3:18 am)
I'm still having problems with this. I wrote to support, but they couldn't look at it currently. :(

I've got the source code and a debugger so if anyone could give a hint on what to look at/for I'd really appreciate it.

- Martin
#2
02/21/2008 (10:59 pm)
That is very odd. I ran into that problem with TGB 1.6 and under, but haven't seen the black ghost window since. I'm running a modified build with the changes mentioned in this thread however. TGB now enters and exits fullscreen mode in a different and (imo) a better way.

If you've got the source, I suggest picking through and taking the parts of the code that are relevant to you. Unless of course someone with more experience has fixed this more directly.
#3
02/21/2008 (11:05 pm)
Hey Martin. Sorry to hear you are having an issue. I'll see if I can duplicate this in the office tomorrow, -no promises I can come up with any answers of course, but I'll give it a shot :)
#4
02/22/2008 (6:44 am)
Thanks, but I managed to "fix" it myself.

We read fullscreen/windowed mode from our own config file instead and toggled the screen to fullscreen mode if necessary while the game was starting up. Apparently this made the black window appear when switching back to windowed. I just put the toggle in a schedule and it now works.

- Martin
#5
02/22/2008 (11:36 am)
Glad to hear you have a solution!