Merge pull request #14618 from Dentomologist/stereomode_unabbreviate_variable_names

StereoMode: Unabbreviate enum names
This commit is contained in:
Jordan Woyak
2026-04-25 11:55:03 -05:00
committed by GitHub
7 changed files with 29 additions and 21 deletions
@@ -241,8 +241,11 @@ void EnhancementsWidget::CreateWidgets()
m_3d_convergence_value->setText(QString::asprintf("%.2f", m_3d_convergence->GetValue()));
auto current_stereo_mode = Get(m_game_layer, Config::GFX_STEREO_MODE);
if (current_stereo_mode != StereoMode::SBS && current_stereo_mode != StereoMode::TAB)
if (current_stereo_mode != StereoMode::SideBySide &&
current_stereo_mode != StereoMode::TopAndBottom)
{
m_3d_per_eye_resolution->hide();
}
main_layout->addWidget(enhancements_box);
main_layout->addWidget(stereoscopy_box);
@@ -257,10 +260,15 @@ void EnhancementsWidget::ConnectWidgets()
auto current_stereo_mode = Get(m_game_layer, Config::GFX_STEREO_MODE);
LoadPostProcessingShaders();
if (current_stereo_mode == StereoMode::SBS || current_stereo_mode == StereoMode::TAB)
if (current_stereo_mode == StereoMode::SideBySide ||
current_stereo_mode == StereoMode::TopAndBottom)
{
m_3d_per_eye_resolution->show();
}
else
{
m_3d_per_eye_resolution->hide();
}
});
connect(m_post_processing_effect, &QComboBox::currentIndexChanged, this,
+6 -6
View File
@@ -551,15 +551,15 @@ void HotkeyScheduler::Run()
emit DecrementSelectedStateSlotHotkey();
// Stereoscopy
if (IsHotkey(HK_TOGGLE_STEREO_SBS))
if (IsHotkey(HK_TOGGLE_STEREO_SIDE_BY_SIDE))
{
if (Config::Get(Config::GFX_STEREO_MODE) != StereoMode::SBS)
if (Config::Get(Config::GFX_STEREO_MODE) != StereoMode::SideBySide)
{
// Disable post-processing shader, as stereoscopy itself is currently a shader
if (Config::Get(Config::GFX_ENHANCE_POST_SHADER) == DUBOIS_ALGORITHM_SHADER)
Config::SetCurrent(Config::GFX_ENHANCE_POST_SHADER, "");
Config::SetCurrent(Config::GFX_STEREO_MODE, StereoMode::SBS);
Config::SetCurrent(Config::GFX_STEREO_MODE, StereoMode::SideBySide);
}
else
{
@@ -567,15 +567,15 @@ void HotkeyScheduler::Run()
}
}
if (IsHotkey(HK_TOGGLE_STEREO_TAB))
if (IsHotkey(HK_TOGGLE_STEREO_TOP_AND_BOTTOM))
{
if (Config::Get(Config::GFX_STEREO_MODE) != StereoMode::TAB)
if (Config::Get(Config::GFX_STEREO_MODE) != StereoMode::TopAndBottom)
{
// Disable post-processing shader, as stereoscopy itself is currently a shader
if (Config::Get(Config::GFX_ENHANCE_POST_SHADER) == DUBOIS_ALGORITHM_SHADER)
Config::SetCurrent(Config::GFX_ENHANCE_POST_SHADER, "");
Config::SetCurrent(Config::GFX_STEREO_MODE, StereoMode::TAB);
Config::SetCurrent(Config::GFX_STEREO_MODE, StereoMode::TopAndBottom);
}
else
{