mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
Replaced some uses of AffineTransform::identity with a default-constructed object
This commit is contained in:
parent
21d42f346f
commit
edec7b34b2
22 changed files with 55 additions and 49 deletions
|
|
@ -757,7 +757,7 @@ public:
|
|||
-arrowL, -arrowW,
|
||||
arrowL, 0.0f);
|
||||
|
||||
arrow.applyTransform (AffineTransform::identity
|
||||
arrow.applyTransform (AffineTransform()
|
||||
.rotated (float_Pi * 0.5f - (float) atan2 (x2 - x1, y2 - y1))
|
||||
.translated ((x1 + x2) * 0.5f,
|
||||
(y1 + y2) * 0.5f));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue