Jump to content
  • Advertisement
Sign in to follow this  
Ezbez

Positioning a window

This topic is 4651 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!