Skip to content

Commit 854fa16

Browse files
committed
feat(progress-bar): Revert back to original drawRect
thanks jasmine
1 parent ba709d5 commit 854fa16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/custom_nodes/RLProgressBar.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ void RLProgressBar::updateClipper(float progress)
7171

7272
m_stencil->clear();
7373
m_stencil->drawRect(
74-
{ 2.f, .0f, },
75-
{ (this->getContentSize().width - 4.f) / 100.f * progress, this->getContentSize().height },
74+
{ 2.f, .0f, (this->getContentSize().width - 4.f) / 100.f * progress, this->getContentSize().height },
7675
{ 1.f, 1.f, 1.f, 1.f },
7776
0,
7877
{ 1.f, 1.f, 1.f, 1.f }

0 commit comments

Comments
 (0)