Implemented SDL_setenv(), moved SDL_putenv() to compat.

Fixes Bugzilla #779.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404330
This commit is contained in:
Ryan C. Gordon 2009-12-16 10:59:51 +00:00
parent 034bfdf70d
commit 791f5dbce4
13 changed files with 90 additions and 53 deletions

View file

@ -60,7 +60,7 @@ void InitVideo(int argc, char *argv[])
}
}
SDL_putenv("SDL_VIDEO_WINDOW_POS=center");
SDL_setenv("SDL_VIDEO_WINDOW_POS", "center", 1);
if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError());