Rename gl_custom* to r_custom*.

This commit is contained in:
Yamagi Burmeister 2018-01-09 09:25:29 +01:00
parent ae9d7e397f
commit 03098715ee
7 changed files with 25 additions and 23 deletions

View file

@ -142,7 +142,7 @@ VID_ListModes_f(void)
{
Com_Printf(" %s\n", vid_modes[i].description);
}
Com_Printf(" Mode -1: gl_customwidth x gl_customheight\n");
Com_Printf(" Mode -1: r_customwidth x r_customheight\n");
}
qboolean

View file

@ -188,8 +188,8 @@ extern cvar_t *gl_particle_att_b;
extern cvar_t *gl_particle_att_c;
extern cvar_t *gl_mode;
extern cvar_t *gl_customwidth;
extern cvar_t *gl_customheight;
extern cvar_t *r_customwidth;
extern cvar_t *r_customheight;
extern cvar_t *gl_retexturing;

View file

@ -98,8 +98,8 @@ cvar_t *gl_shadows;
cvar_t *gl_stencilshadow;
cvar_t *gl_mode;
cvar_t *gl_customwidth;
cvar_t *gl_customheight;
cvar_t *r_customwidth;
cvar_t *r_customheight;
cvar_t *gl_retexturing;
@ -1254,8 +1254,8 @@ R_Register(void)
vid_fullscreen = ri.Cvar_Get("vid_fullscreen", "0", CVAR_ARCHIVE);
vid_gamma = ri.Cvar_Get("vid_gamma", "1.2", CVAR_ARCHIVE);
gl_customwidth = ri.Cvar_Get("gl_customwidth", "1024", CVAR_ARCHIVE);
gl_customheight = ri.Cvar_Get("gl_customheight", "768", CVAR_ARCHIVE);
r_customwidth = ri.Cvar_Get("r_customwidth", "1024", CVAR_ARCHIVE);
r_customheight = ri.Cvar_Get("r_customheight", "768", CVAR_ARCHIVE);
gl_msaa_samples = ri.Cvar_Get ( "gl_msaa_samples", "0", CVAR_ARCHIVE );
gl_retexturing = ri.Cvar_Get("gl_retexturing", "1", CVAR_ARCHIVE);
@ -1313,8 +1313,8 @@ R_SetMode(void)
/* a bit hackish approach to enable custom resolutions:
Glimp_SetMode needs these values set for mode -1 */
vid.width = gl_customwidth->value;
vid.height = gl_customheight->value;
vid.width = r_customwidth->value;
vid.height = r_customheight->value;
if ((err = SetMode_impl(&vid.width, &vid.height, gl_mode->value,
fullscreen)) == rserr_ok)

View file

@ -87,8 +87,8 @@ cvar_t *gl_swapinterval;
cvar_t *gl_retexturing;
cvar_t *vid_fullscreen;
cvar_t *gl_mode;
cvar_t *gl_customwidth;
cvar_t *gl_customheight;
cvar_t *r_customwidth;
cvar_t *r_customheight;
cvar_t *vid_gamma;
cvar_t *gl_anisotropic;
cvar_t *gl_texturemode;
@ -205,8 +205,8 @@ GL3_Register(void)
gl_retexturing = ri.Cvar_Get("gl_retexturing", "1", CVAR_ARCHIVE);
gl3_debugcontext = ri.Cvar_Get("gl3_debugcontext", "0", 0);
gl_mode = ri.Cvar_Get("gl_mode", "4", CVAR_ARCHIVE);
gl_customwidth = ri.Cvar_Get("gl_customwidth", "1024", CVAR_ARCHIVE);
gl_customheight = ri.Cvar_Get("gl_customheight", "768", CVAR_ARCHIVE);
r_customwidth = ri.Cvar_Get("r_customwidth", "1024", CVAR_ARCHIVE);
r_customheight = ri.Cvar_Get("r_customheight", "768", CVAR_ARCHIVE);
gl3_particle_size = ri.Cvar_Get("gl3_particle_size", "40", CVAR_ARCHIVE);
gl3_particle_fade_factor = ri.Cvar_Get("gl3_particle_fade_factor", "1.2", CVAR_ARCHIVE);
gl3_particle_square = ri.Cvar_Get("gl3_particle_square", "0", CVAR_ARCHIVE);
@ -303,8 +303,8 @@ GL3_Register(void)
//vid_fullscreen = ri.Cvar_Get("vid_fullscreen", "0", CVAR_ARCHIVE);
//vid_gamma = ri.Cvar_Get("vid_gamma", "1.0", CVAR_ARCHIVE);
//gl_customwidth = ri.Cvar_Get("gl_customwidth", "1024", CVAR_ARCHIVE);
//gl_customheight = ri.Cvar_Get("gl_customheight", "768", CVAR_ARCHIVE);
//r_customwidth = ri.Cvar_Get("r_customwidth", "1024", CVAR_ARCHIVE);
//r_customheight = ri.Cvar_Get("r_customheight", "768", CVAR_ARCHIVE);
//gl_msaa_samples = ri.Cvar_Get ( "gl_msaa_samples", "0", CVAR_ARCHIVE );
//gl_retexturing = ri.Cvar_Get("gl_retexturing", "1", CVAR_ARCHIVE);
@ -374,8 +374,8 @@ GL3_SetMode(void)
/* a bit hackish approach to enable custom resolutions:
Glimp_SetMode needs these values set for mode -1 */
vid.width = gl_customwidth->value;
vid.height = gl_customheight->value;
vid.width = r_customwidth->value;
vid.height = r_customheight->value;
if ((err = SetMode_impl(&vid.width, &vid.height, gl_mode->value,
fullscreen)) == rserr_ok)

View file

@ -483,8 +483,8 @@ extern cvar_t *gl_swapinterval;
extern cvar_t *gl_retexturing;
extern cvar_t *vid_fullscreen;
extern cvar_t *gl_mode;
extern cvar_t *gl_customwidth;
extern cvar_t *gl_customheight;
extern cvar_t *r_customwidth;
extern cvar_t *r_customheight;
extern cvar_t *gl_nolerp_list;
extern cvar_t *gl_nobind;

View file

@ -49,7 +49,9 @@ replacement_t replacements[] = {
{"gl_clear", "r_clear"},
{"gl_consolescale", "r_consolescale"},
{"gl_hudscale", "r_hudscale"},
{"gl_menuscale", "r_scale"}
{"gl_menuscale", "r_scale"},
{"gl_customheight", "r_customheight"},
{"gl_customwidth", "r_customheight"}
};

View file

@ -110,9 +110,9 @@ Graphics (all renderers):
`1` make the objects bigger, values lower 1 smaller. The special value
`-1` sets the optimal scaling factor for the current resolution.
* **gl_customheight** / **gl_customwidth**: Specifies a custom
resolution, the windows will be *gl_customheight* pixels high and
*gl_customwidth* pixels wide. Set *gl_mode* to `-1` to use the custom
* **r_customheight** / **r_customwidth**: Specifies a custom
resolution, the windows will be *r_customheight* pixels high and
*r_customwidth* pixels wide. Set *gl_mode* to `-1` to use the custom
resolution.
* **gl_farsee**: Normally Quake II renders only up to 4096 units. If set