1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

Meta+Userland: Pass Gfx::IntSize by value

Just two ints like Gfx::IntPoint.
This commit is contained in:
MacDue 2022-12-06 21:35:32 +00:00 committed by Andreas Kling
parent e011eafd37
commit 27fae78335
63 changed files with 142 additions and 142 deletions

View file

@ -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() };
}