Sign in to follow this  
Ezbez

Positioning a window

Recommended Posts

Ezbez    1164
When using SDL with c++, can you position the window(when its not running in fullscreen) on the screen? For example, my programs have an annoying habit of opening with about a third of them being hidden beneath the bottom of the screen. I'd like to be able to have it open at the center of the screen instead. Thanks in advance!

Share this post


Link to post
Share on other sites
philipptr    260
Im not 100% sure but i dont think its possible. Remember that SDL has to run on so many window managers, which makes it more complicated to inlcude functions like this one.

EDIT: Since its not mentioned at http://www.libsdl.org/cgi/docwiki.cgi/SDL_20API I dont think SDL has such a function.

Share this post


Link to post
Share on other sites
Toadhead    244
I asked something simulair a long time ago.
If you did a search on the forum you would have known it:

http://www.gamedev.net/community/forums/topic.asp?topic_id=319990

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this