mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
project: Don't use non-standard strcmpi
This commit is contained in:
parent
03c704de1a
commit
ce7e4c97d4
2 changed files with 7 additions and 7 deletions
|
@ -266,15 +266,15 @@ void filter::shader::shader_instance::deactivate()
|
||||||
|
|
||||||
bool filter::shader::shader_instance::valid_param(std::shared_ptr<gs::effect_parameter> param)
|
bool filter::shader::shader_instance::valid_param(std::shared_ptr<gs::effect_parameter> param)
|
||||||
{
|
{
|
||||||
if (strcmpi(param->get_name().c_str(), "ImageSource") == 0)
|
if (strcmp(param->get_name().c_str(), "ImageSource") == 0)
|
||||||
return false;
|
return false;
|
||||||
if (strcmpi(param->get_name().c_str(), "ImageSource_Size") == 0)
|
if (strcmp(param->get_name().c_str(), "ImageSource_Size") == 0)
|
||||||
return false;
|
return false;
|
||||||
if (strcmpi(param->get_name().c_str(), "ImageSource_Texel") == 0)
|
if (strcmp(param->get_name().c_str(), "ImageSource_Texel") == 0)
|
||||||
return false;
|
return false;
|
||||||
if (strcmpi(param->get_name().c_str(), "ImageTarget_Size") == 0)
|
if (strcmp(param->get_name().c_str(), "ImageTarget_Size") == 0)
|
||||||
return false;
|
return false;
|
||||||
if (strcmpi(param->get_name().c_str(), "ImageTarget_Texel") == 0)
|
if (strcmp(param->get_name().c_str(), "ImageTarget_Texel") == 0)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -286,7 +286,7 @@ gfx::effect_source::value_parameter::value_parameter(std::shared_ptr<gfx::effect
|
||||||
std::shared_ptr<gs::effect_parameter> mode = param->get_annotation("mode");
|
std::shared_ptr<gs::effect_parameter> mode = param->get_annotation("mode");
|
||||||
if (mode && (mode->get_type() == gs::effect_parameter::type::String)) {
|
if (mode && (mode->get_type() == gs::effect_parameter::type::String)) {
|
||||||
std::string mode_str = mode->get_default_string();
|
std::string mode_str = mode->get_default_string();
|
||||||
if (strcmpi(mode_str.c_str(), "slider") == 0) {
|
if (strcmp(mode_str.c_str(), "slider") == 0) {
|
||||||
_mode = value_mode::SLIDER;
|
_mode = value_mode::SLIDER;
|
||||||
} else {
|
} else {
|
||||||
_mode = value_mode::INPUT;
|
_mode = value_mode::INPUT;
|
||||||
|
@ -593,7 +593,7 @@ gfx::effect_source::matrix_parameter::matrix_parameter(std::shared_ptr<gfx::effe
|
||||||
std::shared_ptr<gs::effect_parameter> mode = param->get_annotation("mode");
|
std::shared_ptr<gs::effect_parameter> mode = param->get_annotation("mode");
|
||||||
if (mode && (mode->get_type() == gs::effect_parameter::type::String)) {
|
if (mode && (mode->get_type() == gs::effect_parameter::type::String)) {
|
||||||
std::string mode_str = mode->get_default_string();
|
std::string mode_str = mode->get_default_string();
|
||||||
if (strcmpi(mode_str.c_str(), "slider") == 0) {
|
if (strcmp(mode_str.c_str(), "slider") == 0) {
|
||||||
_mode = value_mode::SLIDER;
|
_mode = value_mode::SLIDER;
|
||||||
} else {
|
} else {
|
||||||
_mode = value_mode::INPUT;
|
_mode = value_mode::INPUT;
|
||||||
|
|
Loading…
Reference in a new issue