Skip to content

Commit

Permalink
Fix issue of UILayout (correctness of fix -> was on the wrong method) (
Browse files Browse the repository at this point in the history
  • Loading branch information
aismann authored Jan 1, 2024
1 parent 17a0b11 commit 99cf951
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/2d/DrawNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,14 @@ void DrawNode::drawPolygon(const Vec2* verts,
void DrawNode::drawSolidRect(const Vec2& origin, const Vec2& destination, const Color4B& color)
{
Vec2 vertices[] = {origin, Vec2(destination.x, origin.y), destination, Vec2(origin.x, destination.y)};

_isConvex = true; // Fix issue #1546 of UILayout(#1549)
drawSolidPoly(vertices, 4, color);
_isConvex = false;
}

void DrawNode::drawSolidPoly(const Vec2* poli, unsigned int numberOfPoints, const Color4B& color)
{
_isConvex = true; // Fix issue #1546 of UILayout(#1549)
drawPolygon(poli, numberOfPoints, color, 0.0, Color4B());
_isConvex = false;
}

void DrawNode::drawPie(const Vec2& center,
Expand Down

0 comments on commit 99cf951

Please sign in to comment.