mirror of https://github.com/axmolengine/axmol.git
Fix spelling of function name
This commit is contained in:
parent
4d9beb9d77
commit
689ee1081a
|
@ -110,7 +110,7 @@ FontAtlas::~FontAtlas()
|
|||
#endif
|
||||
|
||||
_font->release();
|
||||
relaseTextures();
|
||||
releaseTextures();
|
||||
|
||||
delete []_currentPageData;
|
||||
|
||||
|
@ -123,7 +123,7 @@ FontAtlas::~FontAtlas()
|
|||
#endif
|
||||
}
|
||||
|
||||
void FontAtlas::relaseTextures()
|
||||
void FontAtlas::releaseTextures()
|
||||
{
|
||||
for( auto &item: _atlasTextures)
|
||||
{
|
||||
|
|
|
@ -109,7 +109,7 @@ public:
|
|||
void setAliasTexParameters();
|
||||
|
||||
protected:
|
||||
void relaseTextures();
|
||||
void releaseTextures();
|
||||
|
||||
void findNewCharacters(const std::u16string& u16Text, std::unordered_map<unsigned short, unsigned short>& charCodeMap);
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ Widget* RelativeLayoutManager::getRelativeWidget(Widget* widget)
|
|||
return relativeWidget;
|
||||
}
|
||||
|
||||
bool RelativeLayoutManager::caculateFinalPositionWithRelativeWidget(LayoutProtocol *layout)
|
||||
bool RelativeLayoutManager::calculateFinalPositionWithRelativeWidget(LayoutProtocol *layout)
|
||||
{
|
||||
Vec2 ap = _widget->getAnchorPoint();
|
||||
Size cs = _widget->getContentSize();
|
||||
|
@ -426,7 +426,7 @@ bool RelativeLayoutManager::caculateFinalPositionWithRelativeWidget(LayoutProtoc
|
|||
return true;
|
||||
}
|
||||
|
||||
void RelativeLayoutManager::caculateFinalPositionWithRelativeAlign()
|
||||
void RelativeLayoutManager::calculateFinalPositionWithRelativeAlign()
|
||||
{
|
||||
RelativeLayoutParameter* layoutParameter = dynamic_cast<RelativeLayoutParameter*>(_widget->getLayoutParameter());
|
||||
|
||||
|
@ -543,12 +543,12 @@ void RelativeLayoutManager::doLayout(LayoutProtocol *layout)
|
|||
}
|
||||
|
||||
|
||||
bool ret = this->caculateFinalPositionWithRelativeWidget(layout);
|
||||
bool ret = this->calculateFinalPositionWithRelativeWidget(layout);
|
||||
if (!ret) {
|
||||
continue;
|
||||
}
|
||||
|
||||
this->caculateFinalPositionWithRelativeAlign();
|
||||
this->calculateFinalPositionWithRelativeAlign();
|
||||
|
||||
|
||||
_widget->setPosition(Vec2(_finalPositionX, _finalPositionY));
|
||||
|
|
|
@ -115,8 +115,8 @@ private:
|
|||
|
||||
Vector<Widget*> getAllWidgets(LayoutProtocol *layout);
|
||||
Widget* getRelativeWidget(Widget* widget);
|
||||
bool caculateFinalPositionWithRelativeWidget(LayoutProtocol *layout);
|
||||
void caculateFinalPositionWithRelativeAlign();
|
||||
bool calculateFinalPositionWithRelativeWidget(LayoutProtocol *layout);
|
||||
void calculateFinalPositionWithRelativeAlign();
|
||||
|
||||
ssize_t _unlayoutChildCount;
|
||||
Vector<Widget*> _widgetChildren;
|
||||
|
|
Loading…
Reference in New Issue