mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
setenv isn't as portable as one could wish...
This commit is contained in:
parent
9175360d53
commit
ea9c1fc4ac
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue