diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-19 16:05:07 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-19 19:11:47 +0300 |
commit | 9c2d4ffbc1d7b25acf865054441b204db04ce1dd (patch) | |
tree | 05aee64a6ffd371907748e4e705dd42f5c21b111 /source/blender/compositor/operations | |
parent | de504e6dec54b7713bea6327005a094e5d2227fc (diff) |
Cleanup: Use enum class for CompositorQuality.
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_QualityStepHelper.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/compositor/operations/COM_QualityStepHelper.cc b/source/blender/compositor/operations/COM_QualityStepHelper.cc index 3eb8d528f7a..c0d86314fb7 100644 --- a/source/blender/compositor/operations/COM_QualityStepHelper.cc +++ b/source/blender/compositor/operations/COM_QualityStepHelper.cc @@ -20,7 +20,7 @@ QualityStepHelper::QualityStepHelper() { - this->m_quality = COM_QUALITY_HIGH; + this->m_quality = CompositorQuality::High; this->m_step = 1; this->m_offsetadd = 4; } @@ -30,16 +30,16 @@ void QualityStepHelper::initExecution(QualityHelper helper) switch (helper) { case COM_QH_INCREASE: switch (this->m_quality) { - case COM_QUALITY_HIGH: + case CompositorQuality::High: default: this->m_step = 1; this->m_offsetadd = 1; break; - case COM_QUALITY_MEDIUM: + case CompositorQuality::Medium: this->m_step = 2; this->m_offsetadd = 2; break; - case COM_QUALITY_LOW: + case CompositorQuality::Low: this->m_step = 3; this->m_offsetadd = 3; break; @@ -47,16 +47,16 @@ void QualityStepHelper::initExecution(QualityHelper helper) break; case COM_QH_MULTIPLY: switch (this->m_quality) { - case COM_QUALITY_HIGH: + case CompositorQuality::High: default: this->m_step = 1; this->m_offsetadd = 4; break; - case COM_QUALITY_MEDIUM: + case CompositorQuality::Medium: this->m_step = 2; this->m_offsetadd = 8; break; - case COM_QUALITY_LOW: + case CompositorQuality::Low: this->m_step = 4; this->m_offsetadd = 16; break; |