mirror of
https://github.com/brl/mutter.git
synced 2025-01-06 17:52:14 +00:00
debug: fix blue outlines for paint-volumes debug opt
When using the CLUTTER_PAINT=paint-volumes debug option we try and show when a paint volume couldn't be determined by drawing a blue outline of the allocation instead. There was a typo though and instead we were drawing an outline the size of the stage instead of for the given actor. This fixes that and removes a FIXME comment relating to the blue outline that is now implemented.
This commit is contained in:
parent
1a8d577168
commit
b3edd3e922
@ -2362,14 +2362,11 @@ _clutter_actor_draw_paint_volume (ClutterActor *self)
|
|||||||
if (!pv)
|
if (!pv)
|
||||||
{
|
{
|
||||||
gfloat width, height;
|
gfloat width, height;
|
||||||
/* XXX: actually for debugging it might be more useful to draw a
|
|
||||||
* blue rectangle around the transformed allocation and add a
|
|
||||||
* label showing that a volume can't be determined. */
|
|
||||||
ClutterActor *stage = _clutter_actor_get_stage_internal (self);
|
ClutterActor *stage = _clutter_actor_get_stage_internal (self);
|
||||||
_clutter_paint_volume_init_static (stage, &fake_pv);
|
_clutter_paint_volume_init_static (stage, &fake_pv);
|
||||||
free_fake_pv = TRUE;
|
free_fake_pv = TRUE;
|
||||||
|
|
||||||
clutter_actor_get_size (stage, &width, &height);
|
clutter_actor_get_size (self, &width, &height);
|
||||||
clutter_paint_volume_set_width (&fake_pv, width);
|
clutter_paint_volume_set_width (&fake_pv, width);
|
||||||
clutter_paint_volume_set_height (&fake_pv, height);
|
clutter_paint_volume_set_height (&fake_pv, height);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user