Evas font-engine: Fixed pen/char query. In RTL first is actually the last.

SVN revision: 56461
This commit is contained in:
Tom Hacohen 2011-01-30 10:37:18 +00:00
parent 729a85e872
commit c012ee700c
1 changed files with 2 additions and 2 deletions

View 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;