mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Changed a function name in FlexboxComponent.
This commit is contained in:
parent
319992a0f7
commit
3fd18ec2ee
|
@ -38,7 +38,7 @@ void FlexboxComponent::render(const glm::mat4& parentTrans)
|
|||
return;
|
||||
|
||||
if (!mLayoutValid)
|
||||
computeLayout();
|
||||
calculateLayout();
|
||||
|
||||
glm::mat4 trans {parentTrans * getTransform()};
|
||||
mRenderer->setMatrix(trans);
|
||||
|
@ -82,7 +82,7 @@ void FlexboxComponent::setItemMargin(glm::vec2 value)
|
|||
mLayoutValid = false;
|
||||
}
|
||||
|
||||
void FlexboxComponent::computeLayout()
|
||||
void FlexboxComponent::calculateLayout()
|
||||
{
|
||||
// If we're not clamping itemMargin to a reasonable value, all kinds of weird rendering
|
||||
// issues could occur.
|
||||
|
|
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
private:
|
||||
// Calculate flexbox layout.
|
||||
void computeLayout();
|
||||
void calculateLayout();
|
||||
|
||||
Renderer* mRenderer;
|
||||
std::vector<FlexboxItem>& mItems;
|
||||
|
|
Loading…
Reference in a new issue