set font size when changed

This commit is contained in:
minggo 2012-06-12 09:43:27 +08:00
parent c0946a9b99
commit 9c58f13abb
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ float CCLabelTTF::getFontSize()
void CCLabelTTF::setFontSize(float fontSize)
{
if (m_fFontSize != fontSize)
{
{
m_fFontSize = fontSize;
// Force update
if (m_string.size() > 0)
{