Fix T42222

Avoid using roundf function, since it's oly defined in C99
This commit is contained in:
Antony Riakiotakis
2014-10-16 12:04:25 +02:00
parent 59b4ea5c69
commit 507712db3f

View File

@@ -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) {