mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
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:
parent
29b6c22384
commit
85327e6b5d
Notes:
sideshowbarker
2024-07-17 14:33:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/85327e6b5d
1 changed files with 2 additions and 2 deletions
|
@ -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<>
|
||||
|
|
Loading…
Reference in a new issue