Added config option for xBR texture scaling

This commit is contained in:
Peter Thoman 2013-04-30 03:46:27 +02:00
parent 392087f26b
commit 04d0a61968
2 changed files with 5 additions and 1 deletions

View File

@ -113,6 +113,8 @@ void Config::Load(const char *iniFileName)
#else
graphics->Get("MipMap", &bMipMap, false);
#endif
graphics->Get("XBRZTexScalingLevel", &iXBRZTexScalingLevel, 0);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Get("Enable", &bEnableSound, true);
@ -192,6 +194,7 @@ void Config::Save()
graphics->Set("StretchToDisplay", bStretchToDisplay);
graphics->Set("TrueColor", bTrueColor);
graphics->Set("MipMap", bMipMap);
graphics->Set("XBRZTexScalingLevel", iXBRZTexScalingLevel);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Set("Enable", bEnableSound);

View File

@ -64,13 +64,14 @@ public:
int iWindowX;
int iWindowY;
int iWindowZoom; // for Windows
bool SSAntiAliasing; //for Windows, too
bool SSAntiAliasing; // for Windows, too
bool bVertexCache;
bool bFullScreen;
int iAnisotropyLevel;
bool bTrueColor;
bool bMipMap;
bool bAnisotropicFiltering;
int iXBRZTexScalingLevel; // 0 = 1 = off, 2 = 2xBRZ, 3 = 3xBRZ, ..., 5 = 5xBRZ
// Sound
bool bEnableSound;