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.. :^)
This commit is contained in:
Andreas Kling 2022-04-07 04:00:47 +02:00
parent 29b6c22384
commit 85327e6b5d
Notes: sideshowbarker 2024-07-17 14:33:07 +09:00

View file

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