SDL_putenv() is problematic in versions <= 1.2.9 so replaced it with plain putenv().

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@346 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2010-11-12 15:51:04 +00:00
parent db353f7a19
commit d5a2f16883

View file

@ -1208,7 +1208,7 @@ void VID_Init (void)
if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1) if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1)
Sys_Error("Could not initialize SDL Video"); Sys_Error("Could not initialize SDL Video");
SDL_putenv (vid_center); putenv (vid_center); /* SDL_putenv is problematic in versions <= 1.2.9 */
VID_InitDIB(); VID_InitDIB();
basenummodes = nummodes = 1; basenummodes = nummodes = 1;