mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
clutter/cogl/stage: Simplify swap_event boolean logic
We'll expect a swap event if any of the view paints resulted in a swap; make the logic dealing with this clearer by making changing the less vilible '|| swap_event' postfix with a up front '|=' operator. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042
This commit is contained in:
parent
37d7df612b
commit
860906246e
@ -1090,8 +1090,7 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
|
|||||||
{
|
{
|
||||||
ClutterStageView *view = l->data;
|
ClutterStageView *view = l->data;
|
||||||
|
|
||||||
swap_event =
|
swap_event |= clutter_stage_cogl_redraw_view (stage_window, view);
|
||||||
clutter_stage_cogl_redraw_view (stage_window, view) || swap_event;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_clutter_stage_emit_after_paint (stage_cogl->wrapper);
|
_clutter_stage_emit_after_paint (stage_cogl->wrapper);
|
||||||
|
Loading…
Reference in New Issue
Block a user