mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +00:00
Small fix for duplicated Registering of _windowed_mouse
This commit is contained in:
parent
692f99de11
commit
f6b334821b
4 changed files with 2 additions and 9 deletions
|
@ -411,8 +411,7 @@ void VID_Init(unsigned char *palette)
|
|||
S_Init();
|
||||
|
||||
Cvar_RegisterVariable(&vid_mode);
|
||||
Cvar_RegisterVariable(&gl_ztrick);
|
||||
Cvar_RegisterVariable(&_windowed_mouse);
|
||||
Cvar_RegisterVariable(&gl_ztrick);
|
||||
Cvar_RegisterVariable(&vid_glx_fullscreen);
|
||||
|
||||
vid.maxwarpwidth = WARP_WIDTH;
|
||||
|
|
|
@ -156,7 +156,6 @@ cvar_t _vid_wait_override = {"_vid_wait_override", "0", CVAR_ARCHIVE};
|
|||
cvar_t vid_config_x = {"vid_config_x", "800", CVAR_ARCHIVE};
|
||||
cvar_t vid_config_y = {"vid_config_y", "600", CVAR_ARCHIVE};
|
||||
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2", "1", CVAR_ARCHIVE};
|
||||
cvar_t _windowed_mouse = {"_windowed_mouse", "1", CVAR_ARCHIVE};
|
||||
|
||||
int window_center_x, window_center_y, window_x, window_y, window_width, window_height;
|
||||
RECT window_rect;
|
||||
|
@ -1588,8 +1587,7 @@ void VID_Init (unsigned char *palette)
|
|||
Cvar_RegisterVariable (&_vid_default_mode_win);
|
||||
Cvar_RegisterVariable (&vid_config_x);
|
||||
Cvar_RegisterVariable (&vid_config_y);
|
||||
Cvar_RegisterVariable (&vid_stretch_by_2);
|
||||
Cvar_RegisterVariable (&_windowed_mouse);
|
||||
Cvar_RegisterVariable (&vid_stretch_by_2);
|
||||
Cvar_RegisterVariable (&gl_ztrick);
|
||||
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f);
|
||||
|
|
|
@ -53,7 +53,6 @@ cvar_t _vid_default_mode_win = {"_vid_default_mode_win","1", CVAR_ARCHIVE};
|
|||
cvar_t vid_config_x = {"vid_config_x","800", CVAR_ARCHIVE};
|
||||
cvar_t vid_config_y = {"vid_config_y","600", CVAR_ARCHIVE};
|
||||
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2","1", CVAR_ARCHIVE};
|
||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||
cvar_t vid_fullscreen_mode = {"vid_fullscreen_mode","3", CVAR_ARCHIVE};
|
||||
cvar_t vid_windowed_mode = {"vid_windowed_mode","0", CVAR_ARCHIVE};
|
||||
cvar_t block_switch = {"block_switch","0", CVAR_ARCHIVE};
|
||||
|
@ -105,7 +104,6 @@ void VID_Init (unsigned char *palette)
|
|||
Cvar_RegisterVariable (&vid_config_x);
|
||||
Cvar_RegisterVariable (&vid_config_y);
|
||||
Cvar_RegisterVariable (&vid_stretch_by_2);
|
||||
Cvar_RegisterVariable (&_windowed_mouse);
|
||||
Cvar_RegisterVariable (&vid_fullscreen_mode);
|
||||
Cvar_RegisterVariable (&vid_windowed_mode);
|
||||
Cvar_RegisterVariable (&block_switch);
|
||||
|
|
|
@ -33,7 +33,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include <cmd.h>
|
||||
#include <client.h>
|
||||
|
||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||
static float old_windowed_mouse = 0;
|
||||
|
||||
viddef_t vid; // global video state
|
||||
|
@ -91,7 +90,6 @@ void VID_Init (unsigned char *palette)
|
|||
|
||||
S_Init();
|
||||
|
||||
Cvar_RegisterVariable(&_windowed_mouse);
|
||||
// Load the SDL library
|
||||
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_CDROM)<0) //|SDL_INIT_AUDIO|SDL_INIT_CDROM) < 0)
|
||||
Sys_Error("VID: Couldn't load SDL: %s", SDL_GetError());
|
||||
|
|
Loading…
Reference in a new issue