round negatives right.
authorCarsten Haitzler <raster@rasterman.com>
Thu, 13 Oct 2011 06:36:22 +0000 (06:36 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Thu, 13 Oct 2011 06:36:22 +0000 (06:36 +0000)
SVN revision: 64035

legacy/evas/src/lib/include/evas_common.h

index 821be55..726790c 100644 (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 */