change type of Label::_shadowNode

This commit is contained in:
Dhilan007 2014-03-31 11:47:28 +08:00
parent 08beaa3532
commit cffdb129c9
2 changed files with 2 additions and 2 deletions

View File

@ -1084,7 +1084,7 @@ void Label::drawTextSprite(Renderer *renderer, bool parentTransformUpdated)
if (_shadowEnabled && _shadowNode == nullptr)
{
_shadowNode = Sprite::createWithTexture(_textSprite->getTexture());
((Sprite*)_shadowNode)->setBlendFunc(_blendFunc);
_shadowNode->setBlendFunc(_blendFunc);
_shadowNode->setAnchorPoint(Point::ANCHOR_BOTTOM_LEFT);
_shadowNode->setColor(_shadowColor);
_shadowNode->setOpacity(_effectColorF.a * _displayedOpacity);

View File

@ -372,7 +372,7 @@ protected:
int _shadowBlurRadius;
kmMat4 _parentTransform;
Color3B _shadowColor;
Node* _shadowNode;
Sprite* _shadowNode;
Color4B _textColor;
Color4F _textColorF;