1
0
Fork 0
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:
jules 2015-12-22 17:46:31 +00:00
parent 21d42f346f
commit edec7b34b2
22 changed files with 55 additions and 49 deletions

View file

@ -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));