disable mouse and fullscreen by default, and enable opengl by default
This commit is contained in:
parent
c920120f71
commit
34086f696c
|
@ -108,9 +108,9 @@ UINT8 graphics_started = 0; // Is used in console.c and screen.c
|
|||
|
||||
// To disable fullscreen at startup; is set in VID_PrepareModeList
|
||||
boolean allow_fullscreen = false;
|
||||
static SDL_bool disable_fullscreen = SDL_FALSE;
|
||||
static SDL_bool disable_fullscreen = SDL_TRUE;
|
||||
#define USE_FULLSCREEN (disable_fullscreen||!allow_fullscreen)?0:cv_fullscreen.value
|
||||
static SDL_bool disable_mouse = SDL_FALSE;
|
||||
static SDL_bool disable_mouse = SDL_TRUE;
|
||||
#define USE_MOUSEINPUT (!disable_mouse && cv_usemouse.value && havefocus)
|
||||
#define MOUSE_MENU false //(!disable_mouse && cv_usemouse.value && menuactive && !USE_FULLSCREEN)
|
||||
#define MOUSEBUTTONS_MAX MOUSEBUTTONS
|
||||
|
@ -1716,8 +1716,8 @@ void I_StartupGraphics(void)
|
|||
CV_RegisterVar (&cv_vidwait);
|
||||
CV_RegisterVar (&cv_stretch);
|
||||
CV_RegisterVar (&cv_alwaysgrabmouse);
|
||||
disable_mouse = M_CheckParm("-nomouse");
|
||||
disable_fullscreen = M_CheckParm("-win") ? 1 : 0;
|
||||
disable_mouse = !M_CheckParm("-yesmouse");
|
||||
disable_fullscreen = !(M_CheckParm("-fullscreen") ? 1 : 0);
|
||||
|
||||
keyboard_started = true;
|
||||
|
||||
|
@ -1787,7 +1787,7 @@ void I_StartupGraphics(void)
|
|||
VID_Command_ModeList_f();
|
||||
|
||||
#ifdef HWRENDER
|
||||
if (rendermode == render_opengl)
|
||||
if (!M_CheckParm("-nopengl") || rendermode == render_opengl)
|
||||
VID_StartupOpenGL();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue