Browse Source

Fix for Parallelogram::transformedBy()

tags/2021-05-28
ed 5 years ago
parent
commit
c419bc516d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_graphics/geometry/juce_Parallelogram.h

+ 4
- 1
modules/juce_graphics/geometry/juce_Parallelogram.h View File

@@ -158,7 +158,10 @@ public:
Parallelogram transformedBy (const AffineTransform& transform) const noexcept
{
auto p = *this;
transform.transformPoints (p.topLeft, p.topRight, p.bottomLeft);
transform.transformPoints (p.topLeft.x, p.topLeft.y,
p.topRight.x, p.topRight.y,
p.bottomLeft.x, p.bottomLeft.y);
return p;
}


Loading…
Cancel
Save