mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
VideoConfig: Make StereoMode an enum class
Makes for more strongly-typed identifiers (and doesn't pollute surrounding namespaces)
This commit is contained in:
parent
10697bcbe3
commit
5337e58284
25 changed files with 78 additions and 74 deletions
|
@ -1199,7 +1199,7 @@ void VideoConfigDiag::CreateDescriptionArea(wxPanel* const page, wxBoxSizer* con
|
|||
void VideoConfigDiag::PopulatePostProcessingShaders()
|
||||
{
|
||||
std::vector<std::string> shaders =
|
||||
vconfig.iStereoMode == STEREO_ANAGLYPH ?
|
||||
vconfig.stereo_mode == StereoMode::Anaglyph ?
|
||||
PostProcessingShaderImplementation::GetAnaglyphShaderList(vconfig.backend_info.api_type) :
|
||||
PostProcessingShaderImplementation::GetShaderList(vconfig.backend_info.api_type);
|
||||
|
||||
|
@ -1223,7 +1223,7 @@ void VideoConfigDiag::PopulatePostProcessingShaders()
|
|||
// Invalid shader, reset it to default
|
||||
choice_ppshader->Select(0);
|
||||
|
||||
if (vconfig.iStereoMode == STEREO_ANAGLYPH)
|
||||
if (vconfig.stereo_mode == StereoMode::Anaglyph)
|
||||
{
|
||||
Config::SetBaseOrCurrent(Config::GFX_ENHANCE_POST_SHADER, std::string("dubois"));
|
||||
choice_ppshader->SetStringSelection(StrToWxStr(vconfig.sPostProcessingShader));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue