mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 05:40:44 +00:00
UI support for 21:9
- Can specify aspect ratio 21:9 in video menu - menu_screenratios cvar can now force 21:9
This commit is contained in:
parent
a4705c8404
commit
a28c8091fc
2 changed files with 5 additions and 2 deletions
|
@ -85,7 +85,7 @@ static BYTE BitTranslate[32];
|
|||
|
||||
CUSTOM_CVAR (Int, menu_screenratios, -1, CVAR_ARCHIVE)
|
||||
{
|
||||
if (self < -1 || self > 4)
|
||||
if (self < -1 || self > 6)
|
||||
{
|
||||
self = -1;
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ static void BuildModesList (int hiwidth, int hiheight, int hi_bits)
|
|||
bool letterbox=false;
|
||||
int ratiomatch;
|
||||
|
||||
if (menu_screenratios >= 0 && menu_screenratios <= 4)
|
||||
if (menu_screenratios >= 0 && menu_screenratios <= 6)
|
||||
{
|
||||
ratiomatch = menu_screenratios;
|
||||
}
|
||||
|
|
|
@ -1678,6 +1678,7 @@ OptionValue ForceRatios
|
|||
5.0, "17:10"
|
||||
2.0, "16:10"
|
||||
4.0, "5:4"
|
||||
6.0, "21:9"
|
||||
}
|
||||
OptionValue Ratios
|
||||
{
|
||||
|
@ -1685,6 +1686,7 @@ OptionValue Ratios
|
|||
1.0, "16:9"
|
||||
2.0, "16:10"
|
||||
3.0, "17:10"
|
||||
6.0, "21:9"
|
||||
-1, "$OPTVAL_ALL"
|
||||
}
|
||||
OptionValue RatiosTFT
|
||||
|
@ -1694,6 +1696,7 @@ OptionValue RatiosTFT
|
|||
1.0, "16:9"
|
||||
2.0, "16:10"
|
||||
3.0, "17:10"
|
||||
6.0, "21:9"
|
||||
-1, "$OPTVAL_ALL"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue