- reinstate 320x200 with the following caveat: it only functions outside of menus and console, and only when the dialogues and logs use the default font, the game will temporarily switch to 640x400 in these situations

This commit is contained in:
Rachael Alexanderson 2019-12-23 23:14:08 -05:00
commit 4ff8922006
4 changed files with 59 additions and 8 deletions

View file

@ -503,11 +503,19 @@ void FGameConfigFile::DoGlobalSetup ()
{
auto var = FindCVar("vid_scalemode", NULL);
UCVarValue newvalue;
newvalue.Int = 2;
if (var != NULL)
{
UCVarValue v = var->GetGenericRep(CVAR_Int);
if (v.Int == 3) var->SetGenericRep(newvalue, CVAR_Int);
if (v.Int == 3) // 640x400
{
newvalue.Int = 2;
var->SetGenericRep(newvalue, CVAR_Int);
}
if (v.Int == 2) // 320x200
{
newvalue.Int = 7;
var->SetGenericRep(newvalue, CVAR_Int);
}
}
}
if (last < 219)