mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
Remove all internal use of deprecated cogl_clip_* API
cogl_clip_push, and cogl_clip_push_window_rect which are now deprecated were used in various places internally so this just switches to using the replacement functions.
This commit is contained in:
@ -2359,10 +2359,10 @@ clutter_actor_paint (ClutterActor *self)
|
||||
|
||||
if (priv->has_clip)
|
||||
{
|
||||
cogl_clip_push (priv->clip[0],
|
||||
priv->clip[1],
|
||||
priv->clip[2],
|
||||
priv->clip[3]);
|
||||
cogl_clip_push_rectangle (priv->clip[0],
|
||||
priv->clip[1],
|
||||
priv->clip[0] + priv->clip[2],
|
||||
priv->clip[1] + priv->clip[3]);
|
||||
clip_set = TRUE;
|
||||
}
|
||||
else if (priv->clip_to_allocation)
|
||||
@ -2372,7 +2372,7 @@ clutter_actor_paint (ClutterActor *self)
|
||||
width = priv->allocation.x2 - priv->allocation.x1;
|
||||
height = priv->allocation.y2 - priv->allocation.y1;
|
||||
|
||||
cogl_clip_push (0, 0, width, height);
|
||||
cogl_clip_push_rectangle (0, 0, width, height);
|
||||
clip_set = TRUE;
|
||||
}
|
||||
|
||||
|
@ -489,7 +489,7 @@ _clutter_do_pick (ClutterStage *stage,
|
||||
_clutter_stage_maybe_setup_viewport (stage);
|
||||
|
||||
if (G_LIKELY (!(clutter_debug_flags & CLUTTER_DEBUG_DUMP_PICK_BUFFERS)))
|
||||
cogl_clip_push_window_rect (x, y, 1, 1);
|
||||
cogl_clip_push_window_rectangle (x, y, 1, 1);
|
||||
|
||||
cogl_color_set_from_4ub (&white, 255, 255, 255, 255);
|
||||
cogl_disable_fog ();
|
||||
|
@ -1610,9 +1610,9 @@ clutter_text_paint (ClutterActor *self)
|
||||
|
||||
pango_layout_get_extents (layout, NULL, &logical_rect);
|
||||
|
||||
cogl_clip_push (0, 0,
|
||||
(alloc.x2 - alloc.x1),
|
||||
(alloc.y2 - alloc.y1));
|
||||
cogl_clip_push_rectangle (0, 0,
|
||||
(alloc.x2 - alloc.x1),
|
||||
(alloc.y2 - alloc.y1));
|
||||
clip_set = TRUE;
|
||||
|
||||
actor_width = (alloc.x2 - alloc.x1)
|
||||
|
Reference in New Issue
Block a user