mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 09:10:54 +00:00
gl_vidsdl.c: fix an initialization oops
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@820 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
8dfabe4e7f
commit
7ae0a9e7f2
1 changed files with 3 additions and 1 deletions
|
@ -880,7 +880,7 @@ VID_Init
|
||||||
void VID_Init (void)
|
void VID_Init (void)
|
||||||
{
|
{
|
||||||
static char vid_center[] = "SDL_VIDEO_CENTERED=center";
|
static char vid_center[] = "SDL_VIDEO_CENTERED=center";
|
||||||
const SDL_VideoInfo *info = SDL_GetVideoInfo();
|
const SDL_VideoInfo *info;
|
||||||
int width, height, bpp;
|
int width, height, bpp;
|
||||||
qboolean fullscreen;
|
qboolean fullscreen;
|
||||||
const char *read_vars[] = { "vid_fullscreen",
|
const char *read_vars[] = { "vid_fullscreen",
|
||||||
|
@ -910,6 +910,8 @@ 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");
|
||||||
|
|
||||||
|
info = SDL_GetVideoInfo();
|
||||||
|
|
||||||
putenv (vid_center); /* SDL_putenv is problematic in versions <= 1.2.9 */
|
putenv (vid_center); /* SDL_putenv is problematic in versions <= 1.2.9 */
|
||||||
|
|
||||||
if (CFG_OpenConfig("config.cfg") == 0)
|
if (CFG_OpenConfig("config.cfg") == 0)
|
||||||
|
|
Loading…
Reference in a new issue