mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
This commit is contained in:
parent
e011eafd37
commit
27fae78335
63 changed files with 142 additions and 142 deletions
|
@ -166,7 +166,7 @@ FloatPoint AffineTransform::map(FloatPoint point) const
|
|||
}
|
||||
|
||||
template<>
|
||||
IntSize AffineTransform::map(IntSize const& size) const
|
||||
IntSize AffineTransform::map(IntSize size) const
|
||||
{
|
||||
return {
|
||||
round_to<int>(static_cast<float>(size.width()) * x_scale()),
|
||||
|
@ -175,7 +175,7 @@ IntSize AffineTransform::map(IntSize const& size) const
|
|||
}
|
||||
|
||||
template<>
|
||||
FloatSize AffineTransform::map(FloatSize const& size) const
|
||||
FloatSize AffineTransform::map(FloatSize size) const
|
||||
{
|
||||
return { size.width() * x_scale(), size.height() * y_scale() };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue