From 4d81e0739d2cc7112d5167682fd0750836f691a9 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Sat, 6 Apr 2013 01:48:00 -0400 Subject: Use an enum for efb scale values. --- Source/Core/VideoCommon/Src/VideoConfig.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Source/Core/VideoCommon/Src/VideoConfig.cpp') 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; -- cgit v1.2.3