mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711063 - Part 1.5: Add operator to gfx::Matrix for size transformation. r=jrmuizel
This commit is contained in:
parent
fbae97b9be
commit
419c357802
@ -73,6 +73,16 @@ public:
|
||||
return retPoint;
|
||||
}
|
||||
|
||||
Size operator *(const Size &aSize) const
|
||||
{
|
||||
Size retSize;
|
||||
|
||||
retSize.width = aSize.width * _11 + aSize.height * _21;
|
||||
retSize.height = aSize.width * _12 + aSize.height * _22;
|
||||
|
||||
return retSize;
|
||||
}
|
||||
|
||||
Rect TransformBounds(const Rect& rect) const;
|
||||
|
||||
// Apply a scale to this matrix. This scale will be applied -before- the
|
||||
|
Loading…
Reference in New Issue
Block a user