diff --git a/Core/Config.cpp b/Core/Config.cpp index faf8d2645..fb4f91981 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -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); diff --git a/Core/Config.h b/Core/Config.h index ba59ed41c..f004956e2 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -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;