//
// cocos2d::CCLabelTTF::enableShadow from 0x5ce5a4 to 0x5ce620 (124 bytes)
//
// 1 xrefs:
// > cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0x5ce74c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCLabelTTF::enableShadow(cocos2d::CCLabelTTF *a1, const cocos2d::CCSize *a2, float a3, float a4, bool a5)
{
int v6; // r3
float height; // s13
if ( a1->m_shadowEnabled )
{
v6 = 0;
}
else
{
v6 = 1;
a1->m_shadowEnabled = 1;
}
height = a2->height;
if ( a1->m_shadowOffset.width != a2->width || a1->m_shadowOffset.height != height )
{
a1->m_shadowOffset.width = a2->width;
v6 = 1;
a1->m_shadowOffset.height = height;
}
if ( a1->m_shadowOpacity != a3 )
{
a1->m_shadowOpacity = a3;
v6 = 1;
}
if ( a1->m_shadowBlur == a4 )
{
if ( !v6 )
return;
}
else
{
a1->m_shadowBlur = a4;
}
if ( a5 )
cocos2d::CCLabelTTF::updateTexture(a1);
}