Skip to content

Commit

Permalink
chowdsp::Rectangle: fix naming error
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Sep 30, 2024
1 parent 98c3eb1 commit cba7f1a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,16 +357,16 @@ struct Rectangle
[[nodiscard]] constexpr Rectangle removeFromTop (T amountToRemove) noexcept
{
const Rectangle r { position.x, position.y, width, juce::jmin (amountToRemove, height) };
position.y += r.h;
height -= r.h;
position.y += r.height;
height -= r.height;
return r;
}

[[nodiscard]] constexpr Rectangle removeFromLeft (T amountToRemove) noexcept
{
const Rectangle r { position.x, position.y, juce::jmin (amountToRemove, width), height };
position.x += r.w;
width -= r.w;
position.x += r.width;
width -= r.width;
return r;
}

Expand Down

0 comments on commit cba7f1a

Please sign in to comment.