mirror of https://github.com/axmolengine/axmol.git
Log error instead of triggering an assert for shadow and stroke.
This commit is contained in:
parent
9a26376b1f
commit
cb08479b7e
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue