q66 pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=7da53ee43ece3b20c083655e476ea33fd0ac470e

commit 7da53ee43ece3b20c083655e476ea33fd0ac470e
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Wed Jul 29 15:29:53 2015 +0100

    interface_scrollable: convert to int before using abs first
    
    @fix
---
 src/lib/elm_interface_scrollable.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/lib/elm_interface_scrollable.c 
b/src/lib/elm_interface_scrollable.c
index 73c6281..594685b 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -1305,9 +1305,9 @@ _elm_scroll_bounce_x_animator(void *data)
         r = 1.0;
         if (sid->down.momentum_animator)
           {
-             ed = fabs(sid->down.dx * (_elm_config->thumbscroll_friction +
-                                      sid->down.extra_time) - sid->down.b0x);
-             md = fabs(_elm_config->thumbscroll_friction * 5 * w);
+             ed = abs((int)(sid->down.dx * (_elm_config->thumbscroll_friction +
+                                            sid->down.extra_time) - 
sid->down.b0x));
+             md = abs((int)(_elm_config->thumbscroll_friction * 5 * w));
              if (ed > md) r = (double)(md) / (double)ed;
           }
         x = sid->down.b2x + (int)((double)(dx - odx) * r);
@@ -1361,9 +1361,9 @@ _elm_scroll_bounce_y_animator(void *data)
         r = 1.0;
         if (sid->down.momentum_animator)
           {
-             ed = fabs(sid->down.dy * (_elm_config->thumbscroll_friction +
-                                      sid->down.extra_time) - sid->down.b0y);
-             md = fabs(_elm_config->thumbscroll_friction * 5 * h);
+             ed = abs((int)(sid->down.dy * (_elm_config->thumbscroll_friction +
+                                            sid->down.extra_time) - 
sid->down.b0y));
+             md = abs((int)(_elm_config->thumbscroll_friction * 5 * h));
              if (ed > md) r = (double)(md) / (double)ed;
           }
         y = sid->down.b2y + (int)((double)(dy - ody) * r);

-- 


Reply via email to