mirror of https://github.com/axmolengine/axmol.git
remove else clause
Removing the else clause cause BMFont cannot set its font size
This commit is contained in:
parent
9c264ab64b
commit
219d8193c4
|
@ -795,11 +795,6 @@ void Button::setTitleFontSize(float size)
|
|||
config.fontSize = size;
|
||||
_titleRenderer->setTTFConfig(config);
|
||||
}
|
||||
else
|
||||
{
|
||||
// BMFont can't set its font size
|
||||
size = _fontSize;
|
||||
}
|
||||
updateContentSize();
|
||||
_fontSize = size;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue