Positioning the window?

Is there any possibility within SDL to control
the position of the window? The default behavior
of centering it is not perfect in my case.

Googling sdl-doc-project site reveals no documentation
of it, but maybe there are some undocumented feature
to do this?

thanks,

/Olof

i remember reading through the changelog of the new version of sdl
something regarding the issue of the position of the window, sorry dont
remmeber what it was but i too have my window sometimes created centered,
othertimes its all over the placeā€¦kinda odd.> ----- Original Message -----

From: objarni@dd.chalmers.se (Olof Bjarnason)
To:
Sent: Monday, February 23, 2004 2:33 PM
Subject: [SDL] Positioning the window?

Is there any possibility within SDL to control
the position of the window? The default behavior
of centering it is not perfect in my case.

Googling sdl-doc-project site reveals no documentation
of it, but maybe there are some undocumented feature
to do this?

thanks,

/Olof


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

You can specify the environment variable SDL_VIDEO_WINDOW_POS=x,y.
Using 1.2.7, this should work on X11, MacOSX and Windows.

Regards,
Johannes

< http://libufo.sourceforge.net >On Monday 23 February 2004 23:33, Olof Bjarnason wrote:

Is there any possibility within SDL to control
the position of the window? The default behavior
of centering it is not perfect in my case.