Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-10-16 14:04:25 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-10-16 14:04:41 +0400
commit507712db3fd7aa7bb903f6860f5a4eb29aa2be02 (patch)
treea5d7e131e42f480f18176241a8101587c04afa74 /source
parent59b4ea5c69a1a2d55ff608bd825eb11983ab7b0f (diff)
Fix T42222
Avoid using roundf function, since it's oly defined in C99
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/view2d_ops.c2
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 2b84c0678ae..a396893f8f2 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 = roundf(temp / vsm->fac_round) * vsm->fac_round;
+ temp = floorf(temp / vsm->fac_round + 0.5f) * vsm->fac_round;
/* type of movement */
switch (vsm->zone) {