views/month-popover: Use adw_lerp() function

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/650>
This commit is contained in:
Hari Rana
2025-10-17 17:08:42 +00:00
committed by Marge Bot
parent 3e31bd1641
commit 3a93a4004d
+1 -9
View File
@@ -137,14 +137,6 @@ update_event_list (GcalMonthPopover *self)
}
}
static inline gdouble
lerp (gdouble from,
gdouble to,
gdouble progress)
{
return from * (1.0 - progress) + to * progress;
}
static GskTransform*
create_transform (GcalMonthPopover *self,
gint width,
@@ -162,7 +154,7 @@ create_transform (GcalMonthPopover *self,
graphene_point_init (&offset, width / 2.0, height / 2.0);
transform = gsk_transform_translate (transform, &offset);
scale = lerp (0.75, 1.0, progress);
scale = adw_lerp (0.75, 1.0, progress);
transform = gsk_transform_scale (transform, scale, scale);
graphene_point_init (&offset, -width / 2.0, -height / 2.0);