diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2013-04-06 01:48:00 -0400 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2013-04-06 01:49:13 -0400 |
| commit | 4d81e0739d2cc7112d5167682fd0750836f691a9 (patch) | |
| tree | cc9932a98b424110c83315d1a323ec8212d989fd /Source/Core/VideoCommon/Src/VideoConfig.cpp | |
| parent | 518e7a763594909344170b50df891f0b0ef8c719 (diff) | |
Use an enum for efb scale values.
Diffstat (limited to 'Source/Core/VideoCommon/Src/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VideoConfig.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoConfig.cpp b/Source/Core/VideoCommon/Src/VideoConfig.cpp index 5f10650747..a6139363e6 100644 --- a/Source/Core/VideoCommon/Src/VideoConfig.cpp +++ b/Source/Core/VideoCommon/Src/VideoConfig.cpp @@ -79,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); @@ -139,21 +139,21 @@ void VideoConfig::GameIniLoad(const char *ini_file) iniFile.GetIfExists("Video_Settings", "MSAA", &iMultisampleMode); int tmp = 0; iniFile.GetIfExists("Video_Settings", "EFBScale", &tmp); // integral - if (tmp != -1) + if (tmp != SCALE_FORCE_INTEGRAL) iEFBScale = tmp; // Round down to multiple of native IR else { switch (iEFBScale) { - case 0: - iEFBScale = 1; + case SCALE_AUTO: + iEFBScale = SCALE_AUTO_INTEGRAL; break; - case 3: // 1.5x - iEFBScale = 2; + case SCALE_1_5X: + iEFBScale = SCALE_1X; break; - case 5: // 2.5x - iEFBScale = 4; + case SCALE_2_5X: + iEFBScale = SCALE_2X; break; default: break; |
