mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
don't save -nouncapped
/-uncapped
to config, disable menu item (#1128)
* don't save `-nouncapped`/`-uncapped` to config, disable menu item * remove -hires/-nohires, run docgen -a
This commit is contained in:
parent
bdb3f387db
commit
7bbc40800c
@ -48,7 +48,7 @@ int WIDESCREENDELTA; // [crispy] horizontal widescreen offset
|
|||||||
boolean use_vsync; // killough 2/8/98: controls whether vsync is called
|
boolean use_vsync; // killough 2/8/98: controls whether vsync is called
|
||||||
boolean hires, default_hires; // killough 11/98
|
boolean hires, default_hires; // killough 11/98
|
||||||
boolean use_aspect;
|
boolean use_aspect;
|
||||||
boolean uncapped; // [FG] uncapped rendering frame rate
|
boolean uncapped, default_uncapped; // [FG] uncapped rendering frame rate
|
||||||
int fpslimit; // when uncapped, limit framerate to this value
|
int fpslimit; // when uncapped, limit framerate to this value
|
||||||
boolean fullscreen;
|
boolean fullscreen;
|
||||||
boolean exclusive_fullscreen;
|
boolean exclusive_fullscreen;
|
||||||
@ -1177,24 +1177,7 @@ static void I_InitVideoParms(void)
|
|||||||
|
|
||||||
I_ResetInvalidDisplayIndex();
|
I_ResetInvalidDisplayIndex();
|
||||||
hires = default_hires;
|
hires = default_hires;
|
||||||
|
uncapped = default_uncapped;
|
||||||
//!
|
|
||||||
// @category video
|
|
||||||
//
|
|
||||||
// Enables 640x400 resolution for internal video buffer.
|
|
||||||
//
|
|
||||||
|
|
||||||
if (M_CheckParm("-hires"))
|
|
||||||
hires = true;
|
|
||||||
|
|
||||||
//!
|
|
||||||
// @category video
|
|
||||||
//
|
|
||||||
// Enables original 320x200 resolution for internal video buffer.
|
|
||||||
//
|
|
||||||
|
|
||||||
else if (M_CheckParm("-nohires"))
|
|
||||||
hires = false;
|
|
||||||
|
|
||||||
//!
|
//!
|
||||||
// @category video
|
// @category video
|
||||||
|
@ -66,7 +66,7 @@ extern boolean disk_icon; // killough 10/98
|
|||||||
extern boolean hires, default_hires; // killough 11/98
|
extern boolean hires, default_hires; // killough 11/98
|
||||||
|
|
||||||
extern boolean use_aspect;
|
extern boolean use_aspect;
|
||||||
extern boolean uncapped; // [FG] uncapped rendering frame rate
|
extern boolean uncapped, default_uncapped; // [FG] uncapped rendering frame rate
|
||||||
|
|
||||||
extern boolean fullscreen;
|
extern boolean fullscreen;
|
||||||
extern boolean exclusive_fullscreen;
|
extern boolean exclusive_fullscreen;
|
||||||
|
16
src/m_menu.c
16
src/m_menu.c
@ -3932,14 +3932,7 @@ static void M_SetMidiPlayer(void)
|
|||||||
|
|
||||||
static void M_EnableDisableFPSLimit(void)
|
static void M_EnableDisableFPSLimit(void)
|
||||||
{
|
{
|
||||||
if (!uncapped)
|
DISABLE_ITEM(!uncapped, gen_settings1[gen1_fpslimit]);
|
||||||
{
|
|
||||||
gen_settings1[gen1_fpslimit].m_flags |= S_DISABLE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gen_settings1[gen1_fpslimit].m_flags &= ~S_DISABLE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void M_ToggleFullScreen(void)
|
static void M_ToggleFullScreen(void)
|
||||||
@ -7225,6 +7218,11 @@ void M_ResetSetupMenu(void)
|
|||||||
gen_settings3[gen3_pistolstart].m_flags |= S_DISABLE;
|
gen_settings3[gen3_pistolstart].m_flags |= S_DISABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (M_ParmExists("-uncapped") || M_ParmExists("-nouncapped"))
|
||||||
|
{
|
||||||
|
gen_settings1[gen1_uncapped].m_flags |= S_DISABLE;
|
||||||
|
}
|
||||||
|
|
||||||
if (deh_set_blood_color)
|
if (deh_set_blood_color)
|
||||||
{
|
{
|
||||||
enem_settings1[enem1_colored_blood].m_flags |= S_DISABLE;
|
enem_settings1[enem1_colored_blood].m_flags |= S_DISABLE;
|
||||||
@ -7238,7 +7236,6 @@ void M_ResetSetupMenu(void)
|
|||||||
DISABLE_ITEM(!comp[comp_vile], enem_settings1[enem1_ghost]);
|
DISABLE_ITEM(!comp[comp_vile], enem_settings1[enem1_ghost]);
|
||||||
|
|
||||||
M_CoerceFPSLimit();
|
M_CoerceFPSLimit();
|
||||||
M_EnableDisableFPSLimit();
|
|
||||||
M_UpdateCrosshairItems();
|
M_UpdateCrosshairItems();
|
||||||
M_UpdateCenteredWeaponItem();
|
M_UpdateCenteredWeaponItem();
|
||||||
M_UpdateMultiLineMsgItem();
|
M_UpdateMultiLineMsgItem();
|
||||||
@ -7248,6 +7245,7 @@ void M_ResetSetupMenu(void)
|
|||||||
void M_ResetSetupMenuVideo(void)
|
void M_ResetSetupMenuVideo(void)
|
||||||
{
|
{
|
||||||
DISABLE_ITEM(!hires, enem_settings1[enem1_fuzz]);
|
DISABLE_ITEM(!hires, enem_settings1[enem1_fuzz]);
|
||||||
|
M_EnableDisableFPSLimit();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -172,7 +172,7 @@ default_t defaults[] = {
|
|||||||
// [FG] uncapped rendering frame rate
|
// [FG] uncapped rendering frame rate
|
||||||
{
|
{
|
||||||
"uncapped",
|
"uncapped",
|
||||||
(config_t *) &uncapped, NULL,
|
(config_t *) &default_uncapped, (config_t *) &uncapped,
|
||||||
{1}, {0, 1}, number, ss_gen, wad_no,
|
{1}, {0, 1}, number, ss_gen, wad_no,
|
||||||
"1 to enable uncapped rendering frame rate"
|
"1 to enable uncapped rendering frame rate"
|
||||||
},
|
},
|
||||||
|
@ -17,16 +17,17 @@ static const char *params[] = {
|
|||||||
"-2",
|
"-2",
|
||||||
"-3",
|
"-3",
|
||||||
"-fullscreen",
|
"-fullscreen",
|
||||||
"-hires",
|
|
||||||
"-noblit",
|
"-noblit",
|
||||||
"-nodraw",
|
"-nodraw",
|
||||||
"-nograbmouse",
|
"-nograbmouse",
|
||||||
"-nohires",
|
"-nouncapped",
|
||||||
|
"-uncapped",
|
||||||
"-window",
|
"-window",
|
||||||
"-altdeath",
|
"-altdeath",
|
||||||
"-autojoin",
|
"-autojoin",
|
||||||
"-avg",
|
"-avg",
|
||||||
"-deathmatch",
|
"-deathmatch",
|
||||||
|
"-dedicated",
|
||||||
"-dm3",
|
"-dm3",
|
||||||
"-left",
|
"-left",
|
||||||
"-oldsync",
|
"-oldsync",
|
||||||
@ -47,9 +48,6 @@ static const char *params[] = {
|
|||||||
"-strict",
|
"-strict",
|
||||||
"-cdrom",
|
"-cdrom",
|
||||||
"-nogui",
|
"-nogui",
|
||||||
"-dedicated",
|
|
||||||
"-uncapped",
|
|
||||||
"-nouncapped",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *params_with_args[] = {
|
static const char *params_with_args[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user