mirror of
https://github.com/brl/mutter.git
synced 2024-12-28 13:52:15 +00:00
clutter: Drop _clutter_util_rectangle_offset
It is only used once so there is no need to port it to Mtk Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
This commit is contained in:
parent
a93471eb90
commit
152fdc89fc
@ -206,11 +206,6 @@ CLUTTER_EXPORT
|
|||||||
void _clutter_util_rectangle_int_extents (const graphene_rect_t *src,
|
void _clutter_util_rectangle_int_extents (const graphene_rect_t *src,
|
||||||
MtkRectangle *dest);
|
MtkRectangle *dest);
|
||||||
|
|
||||||
void _clutter_util_rectangle_offset (const MtkRectangle *src,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
MtkRectangle *dest);
|
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
PangoDirection _clutter_pango_unichar_direction (gunichar ch);
|
PangoDirection _clutter_pango_unichar_direction (gunichar ch);
|
||||||
|
|
||||||
|
@ -278,10 +278,8 @@ paint_transformed_framebuffer (ClutterStageView *view,
|
|||||||
MtkRectangle dst_rect;
|
MtkRectangle dst_rect;
|
||||||
|
|
||||||
cairo_region_get_rectangle (redraw_clip, i, &src_rect);
|
cairo_region_get_rectangle (redraw_clip, i, &src_rect);
|
||||||
_clutter_util_rectangle_offset (&src_rect,
|
src_rect.x -= view_layout.x;
|
||||||
-view_layout.x,
|
src_rect.y -= view_layout.y;
|
||||||
-view_layout.y,
|
|
||||||
&src_rect);
|
|
||||||
|
|
||||||
clutter_stage_view_transform_rect_to_onscreen (view,
|
clutter_stage_view_transform_rect_to_onscreen (view,
|
||||||
&src_rect,
|
&src_rect,
|
||||||
|
@ -135,18 +135,6 @@ _clutter_util_rectangle_int_extents (const graphene_rect_t *src,
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
_clutter_util_rectangle_offset (const MtkRectangle *src,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
MtkRectangle *dest)
|
|
||||||
{
|
|
||||||
*dest = *src;
|
|
||||||
|
|
||||||
dest->x += x;
|
|
||||||
dest->y += y;
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
GType value_type;
|
GType value_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user