Update CCLabel.cpp

This commit is contained in:
Delin 2022-01-03 08:56:25 +03:00 committed by GitHub
parent 2da2cad6ad
commit dde46fd5ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1346,7 +1346,7 @@ void Label::setBMFontSizeInternal(float fontSize)
}
}
void Label::scaleFontSizeDown(float fontSize)
void Label::scaleFontSize(float fontSize)
{
bool shouldUpdateContent = true;
if (_currentLabelType == LabelType::TTF)
@ -2608,7 +2608,7 @@ void Label::rescaleWithOriginalFontSize()
auto renderingFontSize = this->getRenderingFontSize();
if (_originalFontSize - renderingFontSize >= 1)
{
this->scaleFontSizeDown(_originalFontSize);
this->scaleFontSize(_originalFontSize);
}
}