diff options
author | Andreas Kling <kling@serenityos.org> | 2022-04-07 04:00:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-07 04:01:57 +0200 |
commit | 85327e6b5d72434ccc6c8b3254cc1c44660362d3 (patch) | |
tree | 18163ea21238ac65e392dc34305f6d24c0321be9 /Userland | |
parent | 29b6c223844d4759118cd40f25067a92b5542ce2 (diff) | |
download | serenity-85327e6b5d72434ccc6c8b3254cc1c44660362d3.zip |
LibWeb: Fix broken AffineTransform::map() implementation
When opening canvas-rotate.html on my host machine, I noticed that
the rotation was going the other way.. :^)
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGfx/AffineTransform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/AffineTransform.cpp b/Userland/Libraries/LibGfx/AffineTransform.cpp index 3872c9be2e..1c60eb508d 100644 --- a/Userland/Libraries/LibGfx/AffineTransform.cpp +++ b/Userland/Libraries/LibGfx/AffineTransform.cpp @@ -142,8 +142,8 @@ Optional<AffineTransform> AffineTransform::inverse() const void AffineTransform::map(float unmapped_x, float unmapped_y, float& mapped_x, float& mapped_y) const { - mapped_x = a() * unmapped_x + b() * unmapped_y + m_values[4]; - mapped_y = c() * unmapped_x + d() * unmapped_y + m_values[5]; + mapped_x = a() * unmapped_x + c() * unmapped_y + e(); + mapped_y = b() * unmapped_x + d() * unmapped_y + f(); } template<> |