mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
gfx-effect-source: Fix UI mode detection
This commit is contained in:
parent
5b9e6f0f1b
commit
98a18480d0
1 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ gfx::effect_source::value_parameter::value_parameter(std::shared_ptr<gs::effect>
|
|||
std::shared_ptr<gs::effect_parameter> mode = param->get_annotation("mode");
|
||||
if (mode && (mode->get_type() == gs::effect_parameter::type::String)) {
|
||||
std::string mode_str = mode->get_default_string();
|
||||
if (strcmpi(mode_str.c_str(), "slider")) {
|
||||
if (strcmpi(mode_str.c_str(), "slider") == 0) {
|
||||
_mode = value_mode::SLIDER;
|
||||
} else {
|
||||
_mode = value_mode::INPUT;
|
||||
|
@ -522,7 +522,7 @@ gfx::effect_source::matrix_parameter::matrix_parameter(std::shared_ptr<gs::effec
|
|||
std::shared_ptr<gs::effect_parameter> mode = param->get_annotation("mode");
|
||||
if (mode && (mode->get_type() == gs::effect_parameter::type::String)) {
|
||||
std::string mode_str = mode->get_default_string();
|
||||
if (strcmpi(mode_str.c_str(), "slider")) {
|
||||
if (strcmpi(mode_str.c_str(), "slider") == 0) {
|
||||
_mode = value_mode::SLIDER;
|
||||
} else {
|
||||
_mode = value_mode::INPUT;
|
||||
|
|
Loading…
Reference in a new issue