setenv isn't as portable as one could wish...

This commit is contained in:
Bill Currie 2002-04-07 04:45:02 +00:00
parent 9175360d53
commit ea9c1fc4ac

View file

@ -37,8 +37,9 @@ static const char rcsid[] =
# include <strings.h>
#endif
#ifndef WIN32
# include <sys/signal.h>
# include <signal.h>
#endif
#include <stdlib.h>
#include <SDL.h>
@ -175,9 +176,9 @@ VID_Init (unsigned char *palette)
// know where. Anyway, it's to work around a 3Dfx Glide bug.
SDL_ShowCursor (0);
SDL_WM_GrabInput (SDL_GRAB_ON);
setenv ("MESA_GLX_FX", "fullscreen", 1);
putenv ("MESA_GLX_FX=fullscreen");
} else {
setenv ("MESA_GLX_FX", "window", 1);
putenv ("MESA_GLX_FX=window");
#endif
}