summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VideoConfig.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2013-04-11 19:55:36 +1200
committerMatthew Parlane <parlane@gmail.com>2013-04-11 19:55:36 +1200
commit0c9d8d34e1307433e27435c7d2f84557fd563752 (patch)
tree70bc214fe520abc14e64d1a78cafffe178ae239c /Source/Core/VideoCommon/Src/VideoConfig.cpp
parent7784fa4c67cc8d2545f45694d83805e7e89cd583 (diff)
parent3c87512180decf6b0aae9402a2179c73674ef5d8 (diff)
Merge branch 'master' into wii-network
Conflicts: Source/Core/Core/CMakeLists.txt
Diffstat (limited to 'Source/Core/VideoCommon/Src/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VideoConfig.cpp30
1 files changed, 27 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoConfig.cpp b/Source/Core/VideoCommon/Src/VideoConfig.cpp
index 60677ceeeb..ad040b9e24 100644
--- a/Source/Core/VideoCommon/Src/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/Src/VideoConfig.cpp
@@ -49,7 +49,6 @@ VideoConfig::VideoConfig()
void VideoConfig::Load(const char *ini_file)
{
- std::string temp;
IniFile iniFile;
iniFile.Load(ini_file);
@@ -80,7 +79,7 @@ void VideoConfig::Load(const char *ini_file)
iniFile.Get("Settings", "HackedBufferUpload", &bHackedBufferUpload, 0);
iniFile.Get("Settings", "MSAA", &iMultisampleMode, 0);
- iniFile.Get("Settings", "EFBScale", &iEFBScale, 2); // native
+ iniFile.Get("Settings", "EFBScale", &iEFBScale, (int) SCALE_1X); // native
iniFile.Get("Settings", "DstAlphaPass", &bDstAlphaPass, false);
@@ -138,7 +137,32 @@ void VideoConfig::GameIniLoad(const char *ini_file)
iniFile.GetIfExists("Video_Settings", "EnablePixelLighting", &bEnablePixelLighting);
iniFile.GetIfExists("Video_Settings", "HackedBufferUpload", &bHackedBufferUpload);
iniFile.GetIfExists("Video_Settings", "MSAA", &iMultisampleMode);
- iniFile.GetIfExists("Video_Settings", "EFBScale", &iEFBScale); // integral
+ int tmp = -9000;
+ iniFile.GetIfExists("Video_Settings", "EFBScale", &tmp); // integral
+ if (tmp != -9000)
+ {
+ if (tmp != SCALE_FORCE_INTEGRAL)
+ iEFBScale = tmp;
+ // Round down to multiple of native IR
+ else
+ {
+ switch (iEFBScale)
+ {
+ case SCALE_AUTO:
+ iEFBScale = SCALE_AUTO_INTEGRAL;
+ break;
+ case SCALE_1_5X:
+ iEFBScale = SCALE_1X;
+ break;
+ case SCALE_2_5X:
+ iEFBScale = SCALE_2X;
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
iniFile.GetIfExists("Video_Settings", "DstAlphaPass", &bDstAlphaPass);
iniFile.GetIfExists("Video_Settings", "DisableFog", &bDisableFog);
iniFile.GetIfExists("Video_Settings", "EnableOpenCL", &bEnableOpenCL);