mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
timeline: Fix bad logic in check
https://bugzilla.gnome.org/show_bug.cgi?id=711540
This commit is contained in:
parent
dd034cccad
commit
d157602924
@ -2447,9 +2447,9 @@ clutter_timeline_get_step_progress (ClutterTimeline *timeline,
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (CLUTTER_IS_TIMELINE (timeline), FALSE);
|
g_return_val_if_fail (CLUTTER_IS_TIMELINE (timeline), FALSE);
|
||||||
|
|
||||||
if (timeline->priv->progress_mode != CLUTTER_STEPS ||
|
if (!(timeline->priv->progress_mode == CLUTTER_STEPS ||
|
||||||
timeline->priv->progress_mode != CLUTTER_STEP_START ||
|
timeline->priv->progress_mode == CLUTTER_STEP_START ||
|
||||||
timeline->priv->progress_mode != CLUTTER_STEP_END)
|
timeline->priv->progress_mode == CLUTTER_STEP_END))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (n_steps != NULL)
|
if (n_steps != NULL)
|
||||||
@ -2521,11 +2521,11 @@ clutter_timeline_get_cubic_bezier_progress (ClutterTimeline *timeline,
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (CLUTTER_IS_TIMELINE (timeline), FALSE);
|
g_return_val_if_fail (CLUTTER_IS_TIMELINE (timeline), FALSE);
|
||||||
|
|
||||||
if (timeline->priv->progress_mode != CLUTTER_CUBIC_BEZIER ||
|
if (!(timeline->priv->progress_mode == CLUTTER_CUBIC_BEZIER ||
|
||||||
timeline->priv->progress_mode != CLUTTER_EASE ||
|
timeline->priv->progress_mode == CLUTTER_EASE ||
|
||||||
timeline->priv->progress_mode != CLUTTER_EASE_IN ||
|
timeline->priv->progress_mode == CLUTTER_EASE_IN ||
|
||||||
timeline->priv->progress_mode != CLUTTER_EASE_OUT ||
|
timeline->priv->progress_mode == CLUTTER_EASE_OUT ||
|
||||||
timeline->priv->progress_mode != CLUTTER_EASE_IN_OUT)
|
timeline->priv->progress_mode == CLUTTER_EASE_IN_OUT))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (c_1 != NULL)
|
if (c_1 != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user