replaced putenv() with setenv()

git-svn-id: svn://anubis/dwscr/trunk@125 5bef9df8-b654-44bb-925b-0ff18baa8f8c
This commit is contained in:
josh 2010-10-26 20:24:34 +00:00
parent 8d759e4fd7
commit 4710d935ae

View File

@ -70,11 +70,11 @@ int main(int argc, char * argv[])
/* make the SDL window appear in the top-left corner of the screen */
if (!windowed)
putenv((char *) "SDL_VIDEO_WINDOW_POS=0,0");
setenv("SDL_VIDEO_WINDOW_POS", "0,0", 1);
/* do not disable power management (this will allow monitors
* to power off at the normally configured timeout) */
putenv((char *) "SDL_VIDEO_ALLOW_SCREENSAVER=1");
setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 1);
if (!start)
return 0;