SFML community forums

Help => Window => Topic started by: Yours3lf on December 22, 2011, 07:57:23 pm

Title: cannot see window
Post by: Yours3lf on December 22, 2011, 07:57:23 pm
Hi,

I've just ported my app from Linux to Windows, everything went fine, except when I start the app I can't see the window it creates.
I suppose it does create the window successfully because when I switch to it it can recieve keystrokes, and I can also load in OGL stuff using the created context.

So I checked with winlister (http://www.nirsoft.net/utils/winlister.html) if the window is alive and stuff, and I found out that the position of it is [32767, 32767] (I guess it is pow(2, sizeof(unsigned short)*8) / 2 - 1). When I centered the window, it worked displaying everything, but I don't know how to make sure that it displays the window at [0, 0].

Best regards,
Yours3!f
Title: cannot see window
Post by: Oneiros on December 23, 2011, 10:43:03 am
You can set position of the windows:
Quote from: "http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php"
window.SetPosition (int x, int y);
Title: cannot see window
Post by: Yours3lf on December 23, 2011, 01:10:36 pm
Thanks, now it works :)