use setenv in preference of putenv

This commit is contained in:
asvitkine 2010-08-22 18:56:11 +00:00
parent 2be97f868a
commit 15b346b031

View File

@ -398,10 +398,10 @@ int main(int argc, char **argv)
#ifdef USE_SDL_VIDEO
// Don't let SDL block the screensaver
putenv("SDL_VIDEO_ALLOW_SCREENSAVER=1");
setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", TRUE);
// Make SDL pass through command-clicks and option-clicks unaltered
putenv("SDL_HAS3BUTTONMOUSE=1");
setenv("SDL_HAS3BUTTONMOUSE", "1", TRUE);
#endif
// Initialize variables