Small hidden window behind main window
by Warthog · in iTorque 2D · 01/23/2009 (8:27 am) · 4 replies
I'm not sure what is up with this, and it has always happened with iTGB, but I get a small blank window behind my main window when running on the Mac. Anyone else seen this? And how do I get rid of it?
#2
01/23/2009 (11:16 am)
I think it has to do with resizing the window to 320x480. I think it actually creates a new window, but it seems to be leaving the old one. I don't think causes any problems though, other than looking odd.
#3
Also, how am I to know for sure that this extra window isn't there on the iPhone, robbing me of resources ;-)
01/23/2009 (3:53 pm)
Still I need to get rid of the thing. We are hoping to release our game on the Mac and Windows as well and it doesn't look good to have a strange blank window hanging about.Also, how am I to know for sure that this extra window isn't there on the iPhone, robbing me of resources ;-)
#4
01/23/2009 (4:03 pm)
OK then, I don't have the code in front of me, but you can see what happens when you call setScreenMode() on the Mac, and see where that window is coming up.
Torque Owner Eyal Erez
I actually had a hack that fixed it on 1.7.3 but that was involving full screen window so I don't think it'l help in this case.
Basically, in the main main.cs before _initializeProject() I had something like that.
Canvas.schedule(10,toggleFullScreen);
function Canvas::toggleFullScreen(%this)
{
toggleFullScreen();
}
NOt sure why it worked. but it did got rid of the black empty window.