mirror of
https://github.com/brl/mutter.git
synced 2025-07-13 05:47:17 +00:00
meta/boxes: typedef cairo_rectangle_int_t MetaRectangle
They are already effectively interchangeable so this should reduce pointless casts. Just like in GDK though, we need to keep the old definition for instrospection to be able to include the struct's fields.
This commit is contained in:
@ -2013,14 +2013,3 @@ meta_rectangle_find_nonintersected_monitor_edges (
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
cairo_rectangle_int_t
|
||||
meta_rectangle_to_cairo_rectangle (MetaRectangle *rect)
|
||||
{
|
||||
return (cairo_rectangle_int_t) {
|
||||
.x = rect->x,
|
||||
.y = rect->y,
|
||||
.width = rect->width,
|
||||
.height = rect->height
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user