- moved VR code and IntRect to 'common'

This commit is contained in:
Christoph Oelckers 2020-04-26 10:26:29 +02:00
commit 686aa9779d
23 changed files with 108 additions and 85 deletions

View file

@ -47,6 +47,7 @@
#include "doomstat.h"
#include "gi.h"
#include "d_main.h"
#include "v_video.h"
#if !defined _MSC_VER && !defined __APPLE__
#include "i_system.h" // for SHARE_DIR
#endif // !_MSC_VER && !__APPLE__
@ -560,6 +561,16 @@ void FGameConfigFile::DoGlobalSetup ()
}
}
}
if (last < 220)
{
auto var = FindCVar("Gamma", NULL);
if (var != NULL)
{
UCVarValue v = var->GetGenericRep(CVAR_Float);
vid_gamma = v.Float;
}
}
}
}
}