diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-10-29 13:10:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-10-29 13:11:51 +0300 |
commit | d73e3f71d4cd5975c82f61d57494aa56a0760c29 (patch) | |
tree | a823621efc4dc57da570156c65a3de4e52fa51db /source/blender/editors/interface/view2d_ops.c | |
parent | 6d1c0260bbb7e17c4594f3b59ff2e9ca255d9791 (diff) |
Revert "Fix T42222"
This reverts commit 507712db3fd7aa7bb903f6860f5a4eb29aa2be02.
Error was quite an old compiler, which had further warnings/errors.
Old compilers can just have this defined in BLI_math
Diffstat (limited to 'source/blender/editors/interface/view2d_ops.c')
-rw-r--r-- | source/blender/editors/interface/view2d_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index a396893f8f2..2b84c0678ae 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -1726,7 +1726,7 @@ static void scroller_activate_apply(bContext *C, wmOperator *op) temp = vsm->fac * vsm->delta; /* round to pixel */ - temp = floorf(temp / vsm->fac_round + 0.5f) * vsm->fac_round; + temp = roundf(temp / vsm->fac_round) * vsm->fac_round; /* type of movement */ switch (vsm->zone) { |