Possible Bug: SDL_VIDEO_WINDOW_POS, mac and opengl

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I’m running into the strange effect that doing a
putenv(SDL_VIDEO_WINDOW_POS, “x,y”) moves the window to the position
wanted but also moves all content in the window by an equal amount in
the same direction. This is on a mac. All content is generated using
opengl (if it makes any difference).

The same program works perfectly on windows. Also, the window positions
are different: y=0 is at the bottom of the screen on a mac and at the
top in windows.

Tested with SDL 1.2.11 and 1.2.13. The relevant code is here, in
SDLDisplayEngine::init (sorry, no small test .exe):

https://www.libavg.de/websvn/filedetails.php?repname=libavg&path=%2Ftrunk%2Flibavg%2Fsrc%2Fplayer%2FSDLDisplayEngine.cpp&rev=0&sc=0

Am I doing something wrong? Is there any workaround?

Cheers,

~ Uli


Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: cocacoder at jabber.berlin.ccc.de
Skype: uzadow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH6p3/GUJpz6XjqGQRAoKkAJ9v3AJaCgZeEYRJ66sxhsCC9NRA1QCguMeG
emEn59NRDmqosV0T/0yaDFo=
=hm4S
-----END PGP SIGNATURE-----