From e94e6bc04939475dc87e0021619f83542c80aea2 Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 30 Jan 2011 10:42:20 +0000 Subject: [PATCH] Evas font-engine: simplify 26_6 round to int. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56510 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/engines/common/evas_font_private.h b/src/lib/engines/common/evas_font_private.h index f30c56c..3ff8df7 100644 --- a/src/lib/engines/common/evas_font_private.h +++ b/src/lib/engines/common/evas_font_private.h @@ -39,7 +39,7 @@ void evas_common_font_int_reload(RGBA_Font_Int *fi); /* 6th bit is on is the same as frac part >= 0.5 */ # define EVAS_FONT_ROUND_26_6_TO_INT(x) \ - ((0x20 & x) ? ((x >> 6) + 1) : (x >> 6)) + (((x + 0x20) & -0x40) >> 6) # define EVAS_FONT_CHARACTER_IS_INVISIBLE(x) ( \ ((0x200C <= (x)) && ((x) <= 0x200D)) || /* ZWNJ..ZWH */ \ -- 2.7.4