summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/GradientPainting.cpp
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-12-06 21:35:32 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-07 11:48:27 +0100
commit27fae783359ece05400dcbee66c50fee97cd1b0b (patch)
tree7918baf077884d287a8dce3ad7ccad9f9d1aaaf0 /Userland/Libraries/LibWeb/Painting/GradientPainting.cpp
parente011eafd3790ca0375a4678a9cb2debd0ae95ac7 (diff)
downloadserenity-27fae783359ece05400dcbee66c50fee97cd1b0b.zip
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/GradientPainting.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Painting/GradientPainting.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/GradientPainting.cpp b/Userland/Libraries/LibWeb/Painting/GradientPainting.cpp
index 4dabc713f9..ea8bfbc9c6 100644
--- a/Userland/Libraries/LibWeb/Painting/GradientPainting.cpp
+++ b/Userland/Libraries/LibWeb/Painting/GradientPainting.cpp
@@ -20,12 +20,12 @@ static float normalized_gradient_angle_radians(float gradient_angle)
return real_angle * (AK::Pi<float> / 180);
}
-static float calulate_gradient_length(Gfx::IntSize const& gradient_size, float sin_angle, float cos_angle)
+static float calulate_gradient_length(Gfx::IntSize gradient_size, float sin_angle, float cos_angle)
{
return AK::fabs(gradient_size.height() * sin_angle) + AK::fabs(gradient_size.width() * cos_angle);
}
-static float calulate_gradient_length(Gfx::IntSize const& gradient_size, float gradient_angle)
+static float calulate_gradient_length(Gfx::IntSize gradient_size, float gradient_angle)
{
float angle = normalized_gradient_angle_radians(gradient_angle);
float sin_angle, cos_angle;