From a28c8091fc329bb1ef8acc12f281f360851c559f Mon Sep 17 00:00:00 2001 From: Michael Labbe Date: Wed, 2 Mar 2016 13:58:29 -0800 Subject: [PATCH] UI support for 21:9 - Can specify aspect ratio 21:9 in video menu - menu_screenratios cvar can now force 21:9 --- src/menu/videomenu.cpp | 4 ++-- wadsrc/static/menudef.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/menu/videomenu.cpp b/src/menu/videomenu.cpp index 59f794fc0..1328e2f7a 100644 --- a/src/menu/videomenu.cpp +++ b/src/menu/videomenu.cpp @@ -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; } diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index a1f654b97..19b5cd771 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -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" }