round negatives right.

SVN revision: 64035
This commit is contained in:
Carsten Haitzler 2011-10-13 06:36:22 +00:00
parent ff8767dbb4
commit 3a59f00292
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
#ifndef HAVE_LROUND
// right now i dont care about rendering bugs on platforms without lround
// (e.g. windows/vc++... yay!)
#define lround(x) ((long int)(x + 0.5))
#define lround(x) ((long int)(x + (x / (2.0 * abs(x)))))
#endif
/* macros needed to log message through eina_log */