Log error instead of triggering an assert for shadow and stroke.

This commit is contained in:
James Chen 2013-06-06 14:19:16 +08:00
parent 9a26376b1f
commit cb08479b7e
1 changed files with 5 additions and 5 deletions

View File

@ -355,7 +355,7 @@ void CCLabelTTF::enableShadow(const CCSize &shadowOffset, float shadowOpacity, f
}
#else
CCAssert(false, "Currently only supported on iOS and Android!");
CCLOGERROR("Currently only supported on iOS and Android!");
#endif
}
@ -374,7 +374,7 @@ void CCLabelTTF::disableShadow(bool updateTexture)
}
#else
CCAssert(false, "Currently only supported on iOS and Android!");
CCLOGERROR("Currently only supported on iOS and Android!");
#endif
}
@ -408,7 +408,7 @@ void CCLabelTTF::enableStroke(const ccColor3B &strokeColor, float strokeSize, bo
}
#else
CCAssert(false, "Currently only supported on iOS and Android!");
CCLOGERROR("Currently only supported on iOS and Android!");
#endif
}
@ -426,7 +426,7 @@ void CCLabelTTF::disableStroke(bool updateTexture)
}
#else
CCAssert(false, "Currently only supported on iOS and Android!");
CCLOGERROR("Currently only supported on iOS and Android!");
#endif
}
@ -442,7 +442,7 @@ void CCLabelTTF::setFontFillColor(const ccColor3B &tintColor, bool updateTexture
this->updateTexture();
}
#else
CCAssert(false, "Currently only supported on iOS and Android!");
CCLOGERROR("Currently only supported on iOS and Android!");
#endif
}