Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit a6df51b

Browse files
committed
Updates after feedback #2
1 parent f940a01 commit a6df51b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

engine/src/bitmapeffect.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,13 @@ Exec_stat MCBitmapEffectSetProperty(MCBitmapEffect *self, MCBitmapEffectProperty
654654
case kMCBitmapEffectPropertyFilter:
655655
{
656656
MCBitmapEffectFilter t_new_filter;
657-
if (MCStringIsEqualTo(*t_data, MCSTR("gaussian"), kMCStringOptionCompareExact))
657+
if (MCStringIsEqualToCString(*t_data, "gaussian", kMCCompareExact))
658658
t_new_filter = kMCBitmapEffectFilterFastGaussian;
659-
else if (MCStringIsEqualTo(*t_data, MCSTR("box1pass"), kMCStringOptionCompareExact))
659+
else if (MCStringIsEqualToCString(*t_data, "box1pass", kMCCompareExact))
660660
t_new_filter = kMCBitmapEffectFilterOnePassBox;
661-
else if (MCStringIsEqualTo(*t_data, MCSTR("box2pass"), kMCStringOptionCompareExact))
661+
else if (MCStringIsEqualToCString(*t_data, "box2pass", kMCCompareExact))
662662
t_new_filter = kMCBitmapEffectFilterTwoPassBox;
663-
else if (MCStringIsEqualTo(*t_data, MCSTR("box3pass"), kMCStringOptionCompareExact))
663+
else if (MCStringIsEqualToCString(*t_data, "box3pass", kMCCompareExact))
664664
t_new_filter = kMCBitmapEffectFilterThreePassBox;
665665
else
666666
{
@@ -752,9 +752,9 @@ Exec_stat MCBitmapEffectSetProperty(MCBitmapEffect *self, MCBitmapEffectProperty
752752
case kMCBitmapEffectPropertySource:
753753
{
754754
MCBitmapEffectSource t_new_source;
755-
if (MCStringIsEqualTo(*t_data, MCSTR("edge"), kMCStringOptionCompareExact))
755+
if (MCStringIsEqualToCString(*t_data, "edge", kMCCompareExact))
756756
t_new_source = kMCBitmapEffectSourceEdge;
757-
else if (MCStringIsEqualTo(*t_data, MCSTR("center"), kMCStringOptionCompareExact))
757+
else if (MCStringIsEqualToCString(*t_data, "center", kMCCompareExact))
758758
t_new_source = kMCBitmapEffectSourceCenter;
759759
else
760760
{

0 commit comments

Comments
 (0)