Evas font-engine: Fixed pen/char query. In RTL first is actually the last.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:37:18 +0000 (10:37 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:37:18 +0000 (10:37 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56461 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_query.c

index c513b9c..0425d6b 100644 (file)
@@ -315,7 +315,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c
                }
              else if ((intl_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL) &&
                    ((EVAS_FONT_WALK_OT_POS_PREV > (size_t) position) ||
-                    (EVAS_FONT_WALK_OT_IS_LAST)) &&
+                    (EVAS_FONT_WALK_OT_IS_FIRST)) &&
                    (((size_t) position) >= EVAS_FONT_WALK_OT_POS))
                {
                   found = 1;
@@ -455,7 +455,7 @@ evas_common_font_query_pen_coords(RGBA_Font *fn, const Eina_Unicode *in_text, co
                }
              else if ((intl_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL) &&
                    ((EVAS_FONT_WALK_OT_POS_PREV > (size_t) position) ||
-                    (EVAS_FONT_WALK_OT_IS_LAST)) &&
+                    (EVAS_FONT_WALK_OT_IS_FIRST)) &&
                    (((size_t) position) >= EVAS_FONT_WALK_OT_POS))
                {
                   found = 1;