commit cbbb10acd6c4fc7928375fa32828366ecc33c465
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Nov 14 20:31:37 2006 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Tue Nov 14 20:31:37 2006 +0000
Use getenv/putenv, not SDL_getenv/SDL_putenv.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 751
---
src/i_video.c | 13 +++++++------
1 file 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