q66 pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=6ee387fdf64387dfccd7bf0a01ab9282b2f63d25

commit 6ee387fdf64387dfccd7bf0a01ab9282b2f63d25
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Wed Jul 29 15:28:08 2015 +0100

    interface_scrollable: don't use integer abs on floating point
    
    @fix
---
 src/lib/elm_interface_scrollable.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/elm_interface_scrollable.c 
b/src/lib/elm_interface_scrollable.c
index 9724003..73c6281 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 = abs(sid->down.dx * (_elm_config->thumbscroll_friction +
+             ed = fabs(sid->down.dx * (_elm_config->thumbscroll_friction +
                                       sid->down.extra_time) - sid->down.b0x);
-             md = abs(_elm_config->thumbscroll_friction * 5 * w);
+             md = fabs(_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 = abs(sid->down.dy * (_elm_config->thumbscroll_friction +
+             ed = fabs(sid->down.dy * (_elm_config->thumbscroll_friction +
                                       sid->down.extra_time) - sid->down.b0y);
-             md = abs(_elm_config->thumbscroll_friction * 5 * h);
+             md = fabs(_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