- added missing hqNx modes to options menu

This commit is contained in:
alexey.lysiuk 2015-12-24 11:13:31 +02:00
parent 19ae244f66
commit 69813993b0
2 changed files with 17 additions and 0 deletions

View file

@ -57,4 +57,18 @@ CUSTOM_CVAR (Float, vid_contrast, 1.f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
// when they are actually valid. // when they are actually valid.
void gl_SetupMenu() void gl_SetupMenu()
{ {
#ifndef _MSC_VER
FOptionValues **opt = OptionValues.CheckKey("HqResizeModes");
if (opt != NULL)
{
for(int i = (*opt)->mValues.Size()-1; i>=0; i--)
{
// Delete HQnX resize modes for non MSVC targets
if ((*opt)->mValues[i].Value >= 7.0)
{
(*opt)->mValues.Delete(i);
}
}
}
#endif
} }

View file

@ -103,6 +103,9 @@ OptionValue "HqResizeModes"
4, "hq2x" 4, "hq2x"
5, "hq3x" 5, "hq3x"
6, "hq4x" 6, "hq4x"
7, "hq2x MMX"
8, "hq3x MMX"
9, "hq4x MMX"
} }
OptionValue "FogMode" OptionValue "FogMode"