From 3a59f00292b7f82a998a77b2276bf7f124261b18 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 13 Oct 2011 06:36:22 +0000 Subject: [PATCH] round negatives right. SVN revision: 64035 --- legacy/evas/src/lib/include/evas_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/evas/src/lib/include/evas_common.h b/legacy/evas/src/lib/include/evas_common.h index 821be552be..726790c155 100644 --- a/legacy/evas/src/lib/include/evas_common.h +++ b/legacy/evas/src/lib/include/evas_common.h @@ -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 */