mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
putenv () may conform to different standards, therefore keep the vid_center[]
static char array in VID_Init (). git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@822 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a6b83f69ce
commit
47b044893e
1 changed files with 2 additions and 1 deletions
|
@ -879,6 +879,7 @@ VID_Init
|
|||
*/
|
||||
void VID_Init (void)
|
||||
{
|
||||
static char vid_center[32] = "SDL_VIDEO_CENTERED=center";
|
||||
const SDL_VideoInfo *info;
|
||||
int width, height, bpp;
|
||||
qboolean fullscreen;
|
||||
|
@ -906,7 +907,7 @@ void VID_Init (void)
|
|||
Cmd_AddCommand ("vid_describecurrentmode", VID_DescribeCurrentMode_f);
|
||||
Cmd_AddCommand ("vid_describemodes", VID_DescribeModes_f);
|
||||
|
||||
putenv ("SDL_VIDEO_CENTERED=center"); /* SDL_putenv is problematic in versions <= 1.2.9 */
|
||||
putenv (vid_center); /* SDL_putenv is problematic in versions <= 1.2.9 */
|
||||
|
||||
if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1)
|
||||
Sys_Error("Could not initialize SDL Video");
|
||||
|
|
Loading…
Reference in a new issue