projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo: 'suposidly' -> 'supposedly'.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode_timedswap.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode_timedswap.cpp
b/synfig-core/trunk/src/synfig/valuenode_timedswap.cpp
index
20be99f
..
549feac
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode_timedswap.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode_timedswap.cpp
@@
-35,6
+35,7
@@
#include "valuenode_const.h"
#include <stdexcept>
#include "color.h"
#include "valuenode_const.h"
#include <stdexcept>
#include "color.h"
+#include <ETL/misc>
#endif
#endif
@@
-220,7
+221,7
@@
synfig::ValueNode_TimedSwap::operator()(Time t)const
{
float a=(float)(*after)(t).get(int());
float b=(float)(*before)(t).get(int());
{
float a=(float)(*after)(t).get(int());
float b=(float)(*before)(t).get(int());
- return
static_cast<int>((b-a)*amount+a+0.5f
);
+ return
round_to_int((b-a)*amount+a
);
}
case ValueBase::TYPE_REAL:
{
}
case ValueBase::TYPE_REAL:
{