mtk: Move Rectangle.to_graphene_rect from Meta

Also drops the clutter equivalent

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
This commit is contained in:
Bilal Elmoussaoui
2023-08-08 12:27:58 +02:00
parent 3d693e8309
commit a93471eb90
16 changed files with 41 additions and 48 deletions

View File

@ -254,21 +254,6 @@ void meta_rectangle_scale_double (const MtkRectangle *rect,
MetaRoundingStrategy rounding_strategy,
MtkRectangle *dest);
static inline graphene_rect_t
meta_rectangle_to_graphene_rect (MtkRectangle *rect)
{
return (graphene_rect_t) {
.origin = {
.x = rect->x,
.y = rect->y
},
.size = {
.width = rect->width,
.height = rect->height
}
};
}
META_EXPORT_TEST
void meta_rectangle_transform (const MtkRectangle *rect,
MetaMonitorTransform transform,