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

@ -199,6 +199,8 @@ void CCLabelTTF::setFontSize(float fontSize)
{ {
if (m_fFontSize != fontSize) if (m_fFontSize != fontSize)
{ {
m_fFontSize = fontSize;
// Force update // Force update
if (m_string.size() > 0) if (m_string.size() > 0)
{ {