From 77c7ad1fef371b94a1e493018b2eb3cea4aa8a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 22 Nov 2020 11:05:08 +0100 Subject: [PATCH] Fix backwards `Frame::rotate` in `canvas` The angle direction has been fixed upstream in `euclid` (see https://github.com/servo/euclid/pull/413). --- graphics/src/widget/canvas/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/src/widget/canvas/frame.rs b/graphics/src/widget/canvas/frame.rs index b5c6a2b1..21e9ec28 100644 --- a/graphics/src/widget/canvas/frame.rs +++ b/graphics/src/widget/canvas/frame.rs @@ -276,7 +276,7 @@ impl Frame { .transforms .current .raw - .pre_rotate(lyon::math::Angle::radians(-angle)); + .pre_rotate(lyon::math::Angle::radians(angle)); self.transforms.current.is_identity = false; }