[libdazzle] stack-list: no need to use CLAMP()



commit ca828a030bfbbc4ba48c549058ec198dfa0305ac
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 10 16:17:50 2017 -0700

    stack-list: no need to use CLAMP()
    
    0 is already the lower bound, with unsigned. Just use MIN().

 src/widgets/dzl-stack-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/dzl-stack-list.c b/src/widgets/dzl-stack-list.c
index 4e6df9c..6e274a5 100644
--- a/src/widgets/dzl-stack-list.c
+++ b/src/widgets/dzl-stack-list.c
@@ -319,7 +319,7 @@ dzl_stack_list_begin_anim (DzlStackList       *self,
       monitor = gdk_display_get_monitor_at_window (display, window);
 
       duration = dzl_animation_calculate_duration (monitor, 0, distance);
-      duration = CLAMP (duration, 0, 500);
+      duration = MIN (duration, 500);
     }
 
   priv->animation = dzl_object_animate_full (priv->animating_rect,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]