mirror of https://github.com/axmolengine/axmol.git
Make shadowOffset parameter of CCLabelTTF::enableShadow(…) a const reference.
This commit is contained in:
parent
42c94ad5a7
commit
719eb15326
|
@ -316,7 +316,7 @@ bool CCLabelTTF::updateTexture()
|
|||
return true;
|
||||
}
|
||||
|
||||
void CCLabelTTF::enableShadow(CCSize &shadowOffset, float shadowOpacity, float shadowBlur, bool updateTexture)
|
||||
void CCLabelTTF::enableShadow(const CCSize &shadowOffset, float shadowOpacity, float shadowBlur, bool updateTexture)
|
||||
{
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) || (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ public:
|
|||
|
||||
|
||||
/** enable or disable shadow for the label */
|
||||
void enableShadow(CCSize &shadowOffset, float shadowOpacity, float shadowBlur, bool mustUpdateTexture = true);
|
||||
void enableShadow(const CCSize &shadowOffset, float shadowOpacity, float shadowBlur, bool mustUpdateTexture = true);
|
||||
|
||||
/** disable shadow rendering */
|
||||
void disableShadow(bool mustUpdateTexture = true);
|
||||
|
|
Loading…
Reference in New Issue