diff options
author | Simon Howard | 2006-11-14 20:31:37 +0000 |
---|---|---|
committer | Simon Howard | 2006-11-14 20:31:37 +0000 |
commit | cbbb10acd6c4fc7928375fa32828366ecc33c465 (patch) | |
tree | 4fcef13d80f3206de08754cc826fb61494ad4f6f | |
parent | dd4e95dc08087503e1467a3ba8c6d534f285d5dd (diff) | |
download | chocolate-doom-cbbb10acd6c4fc7928375fa32828366ecc33c465.tar.gz chocolate-doom-cbbb10acd6c4fc7928375fa32828366ecc33c465.tar.bz2 chocolate-doom-cbbb10acd6c4fc7928375fa32828366ecc33c465.zip |
Use getenv/putenv, not SDL_getenv/SDL_putenv.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 751
-rw-r--r-- | src/i_video.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/i_video.c b/src/i_video.c index 669e6eec..dd5cbe9f 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -26,6 +26,7 @@ #include <SDL.h> +#include <stdlib.h> #include <ctype.h> #include <math.h> @@ -1057,7 +1058,7 @@ void I_CheckIsScreensaver(void) { char *env; - env = SDL_getenv("XSCREENSAVER_WINDOW"); + env = getenv("XSCREENSAVER_WINDOW"); if (env != NULL) { @@ -1108,7 +1109,7 @@ void I_InitGraphics(void) // SDL_WINDOWID, to embed the SDL window into the Xscreensaver // window. - env = SDL_getenv("XSCREENSAVER_WINDOW"); + env = getenv("XSCREENSAVER_WINDOW"); if (env != NULL) { @@ -1118,7 +1119,7 @@ void I_InitGraphics(void) sscanf(env, "0x%x", &winid); sprintf(winenv, "SDL_WINDOWID=%i", winid); - SDL_putenv(winenv); + putenv(winenv); } #ifdef _WIN32 @@ -1127,7 +1128,7 @@ void I_InitGraphics(void) if (M_CheckParm("-gdi") > 0) { - SDL_putenv("SDL_VIDEODRIVER=windib"); + putenv("SDL_VIDEODRIVER=windib"); } // From the SDL 1.2.10 release notes: @@ -1138,9 +1139,9 @@ void I_InitGraphics(void) // // The hell with that. - if (SDL_getenv("SDL_VIDEODRIVER") == NULL) + if (getenv("SDL_VIDEODRIVER") == NULL) { - SDL_putenv("SDL_VIDEODRIVER=directx"); + putenv("SDL_VIDEODRIVER=directx"); } #endif |