Skip to content

Commit

Permalink
Update property.cpp
Browse files Browse the repository at this point in the history
Fix #105
  • Loading branch information
Samuel Ugochukwu authored Oct 11, 2022
1 parent 41f21cc commit 89f23e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Color& Color::combine(double opacity)
Color Color::combined(double opacity) const
{
auto rgb = m_value & 0x00FFFFFF;
auto a = static_cast<int>(std::clamp(0.0, 255.0, opacity * alpha()));
auto a = static_cast<int>(std::clamp(opacity * alpha(), 0.0, 255.0));
return Color(rgb | a << 24);
}

Expand Down

0 comments on commit 89f23e4

Please sign in to comment.