Skip to content

Commit

Permalink
Fix ProgressBar Previous Update
Browse files Browse the repository at this point in the history
fixes Progress Bar's previous update where a character was accidentally deleted as well as being more explicit in the creation of sf::Vector2fs for the sf::FloatRect.
  • Loading branch information
Hapaxia committed Feb 20, 2025
1 parent 42c1e14 commit e28ea1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SelbaWard/ProgressBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ sf::FloatRect ProgressBar::getLocalBounds() const
if (m_showBackground && (m_backgroundAndFrame.getOutlineThickness() > 0.f))
{
const float outlineThickness{ m_backgroundAndFrame.getOutlineThickness() };
return{ { 0.f - outlineThickness, 0.f - outlineThickness }, { m_size.x + outlineThickness * 2.f, m_size.y + outlineThickness * 2f } };
return{ sf::Vector2f{ 0.f - outlineThickness, 0.f - outlineThickness }, sf::Vector2f{ m_size.x + outlineThickness * 2.f, m_size.y + outlineThickness * 2.f } };
}
else
return{ { 0.f, 0.f }, m_size };
return{ sf::Vector2f{ 0.f, 0.f }, m_size };
}

sf::FloatRect ProgressBar::getGlobalBounds() const
Expand Down

0 comments on commit e28ea1e

Please sign in to comment.