mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoConfig: Make AspectMode an enum class
Makes for more strongly-typed identifiers (and doesn't pollute surrounding namespaces)
This commit is contained in:
parent
609a17a0cd
commit
10697bcbe3
6 changed files with 45 additions and 41 deletions
|
@ -61,11 +61,11 @@ void VideoConfig::Refresh()
|
|||
iAdapter = Config::Get(Config::GFX_ADAPTER);
|
||||
|
||||
bWidescreenHack = Config::Get(Config::GFX_WIDESCREEN_HACK);
|
||||
const int aspect_ratio = Config::Get(Config::GFX_ASPECT_RATIO);
|
||||
if (aspect_ratio == ASPECT_AUTO)
|
||||
iAspectRatio = Config::Get(Config::GFX_SUGGESTED_ASPECT_RATIO);
|
||||
const auto config_aspect_mode = static_cast<AspectMode>(Config::Get(Config::GFX_ASPECT_RATIO));
|
||||
if (config_aspect_mode == AspectMode::Auto)
|
||||
aspect_mode = static_cast<AspectMode>(Config::Get(Config::GFX_SUGGESTED_ASPECT_RATIO));
|
||||
else
|
||||
iAspectRatio = aspect_ratio;
|
||||
aspect_mode = config_aspect_mode;
|
||||
bCrop = Config::Get(Config::GFX_CROP);
|
||||
iSafeTextureCache_ColorSamples = Config::Get(Config::GFX_SAFE_TEXTURE_CACHE_COLOR_SAMPLES);
|
||||
bShowFPS = Config::Get(Config::GFX_SHOW_FPS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue