mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter-timeline: Fix some indentation
In Gnome Builder this looks very odd, much worse than in git. We'll probably not touch the code soon, so fix indentation for better readability. https://gitlab.gnome.org/GNOME/mutter/merge_requests/965
This commit is contained in:
parent
132fbf49d7
commit
06fa131235
@ -1038,15 +1038,15 @@ clutter_timeline_do_frame (ClutterTimeline *timeline)
|
|||||||
* to correpondingly reduce elapsed_time_delta to reflect the correct
|
* to correpondingly reduce elapsed_time_delta to reflect the correct
|
||||||
* range of times */
|
* range of times */
|
||||||
if (priv->direction == CLUTTER_TIMELINE_FORWARD)
|
if (priv->direction == CLUTTER_TIMELINE_FORWARD)
|
||||||
{
|
{
|
||||||
elapsed_time_delta -= (priv->elapsed_time - priv->duration);
|
elapsed_time_delta -= (priv->elapsed_time - priv->duration);
|
||||||
priv->elapsed_time = priv->duration;
|
priv->elapsed_time = priv->duration;
|
||||||
}
|
}
|
||||||
else if (priv->direction == CLUTTER_TIMELINE_BACKWARD)
|
else if (priv->direction == CLUTTER_TIMELINE_BACKWARD)
|
||||||
{
|
{
|
||||||
elapsed_time_delta -= - priv->elapsed_time;
|
elapsed_time_delta -= - priv->elapsed_time;
|
||||||
priv->elapsed_time = 0;
|
priv->elapsed_time = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
end_msecs = priv->elapsed_time;
|
end_msecs = priv->elapsed_time;
|
||||||
|
|
||||||
@ -1756,12 +1756,12 @@ _clutter_timeline_do_tick (ClutterTimeline *timeline,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (msecs != 0)
|
if (msecs != 0)
|
||||||
{
|
{
|
||||||
/* Avoid accumulating error */
|
/* Avoid accumulating error */
|
||||||
priv->last_frame_time += msecs;
|
priv->last_frame_time += msecs;
|
||||||
priv->msecs_delta = msecs;
|
priv->msecs_delta = msecs;
|
||||||
clutter_timeline_do_frame (timeline);
|
clutter_timeline_do_frame (timeline);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user