Make shadowOffset parameter of CCLabelTTF::enableShadow(…) a const reference.

This commit is contained in:
Ed Bartley 2013-05-21 15:42:26 -04:00
parent 42c94ad5a7
commit 719eb15326
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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);