Skip to content

Commit

Permalink
- disallow changing the line spacing for option menus.
Browse files Browse the repository at this point in the history
With the VGA font this makes no sense anymore.
  • Loading branch information
coelckers committed Oct 3, 2021
1 parent 6bf487d commit 6e9e75c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/common/menu/menudef.cpp
Expand Up @@ -910,7 +910,7 @@ static void ParseOptionSettings(FScanner &sc)
else if (sc.Compare("Linespacing"))
{
sc.MustGetNumber();
OptionSettings.mLinespacing = sc.Number;
// ignored
}
else if (sc.Compare("LabelOffset"))
{
Expand Down Expand Up @@ -1402,6 +1402,7 @@ void M_ParseMenuDefs()
DefaultOptionMenuSettings = Create<DOptionMenuDescriptor>();
DefaultListMenuSettings->Reset();
DefaultOptionMenuSettings->Reset();
OptionSettings.mLinespacing = 17;

int IWADMenu = fileSystem.CheckNumForName("MENUDEF", ns_global, fileSystem.GetIwadNum());

Expand Down
12 changes: 0 additions & 12 deletions wadsrc/static/menudef.txt
Expand Up @@ -344,18 +344,6 @@ OptionValue AutoOffOn
1, "$OPTVAL_ON"
}

OptionMenuSettings
{
// These can be overridden if a different menu fonts requires it.
Linespacing 17
/*
IfGame(Heretic, Hexen)
{
Linespacing 9
}
*/
}

DefaultOptionMenu
{
Position -15
Expand Down

0 comments on commit 6e9e75c

Please sign in to comment.