Skip to content

Commit

Permalink
feat(progress-bar): Use drawRect overload that exists on all platforms
Browse files Browse the repository at this point in the history
because mac is picky
  • Loading branch information
SpaghettDev committed Jan 31, 2025
1 parent 5652030 commit 5d26369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/custom_nodes/RLProgressBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ void RLProgressBar::updateClipper(float progress)

m_stencil->clear();
m_stencil->drawRect(
{ 2.f, .0f, (this->getContentSize().width - 4.f) / 100.f * progress, this->getContentSize().height },
{ 2.f, .0f, },
{ (this->getContentSize().width - 4.f) / 100.f * progress, this->getContentSize().height },
{ 1.f, 1.f, 1.f, 1.f },
0,
{ 1.f, 1.f, 1.f, 1.f }
Expand Down

0 comments on commit 5d26369

Please sign in to comment.