From: tasn Date: Thu, 2 Sep 2010 11:53:40 +0000 (+0000) Subject: Evas textblock: Fixed compilation without fribidi. X-Git-Tag: submit/trunk/20120815.174732~2436 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4f12ae0b09ef3f16496d336a1e709086477f629;p=profile%2Fivi%2Fevas.git Evas textblock: Fixed compilation without fribidi. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51836 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/engines/common/evas_font_query.c b/src/lib/engines/common/evas_font_query.c index c5a2fd7..9ba101d 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -368,7 +368,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c asc = evas_common_font_max_ascent_get(fn); desc = evas_common_font_max_descent_get(fn); -#ifdef BIDI_SUPPORT +#ifdef BIDI_SUPPORT /* Get the position in the visual string because those are the coords we care about */ position = evas_bidi_position_logical_to_visual(visual_to_logical, len, pos); #else @@ -379,6 +379,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c { /* if it's rtl then the location is the left of the string, * otherwise, the right. */ +#ifdef BIDI_SUPPORT if (intl_props && EVAS_BIDI_PARAGRAPH_DIRECTION_IS_RTL(intl_props->props)) { @@ -386,6 +387,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c if (ch) *ch = asc + desc; } else +#endif { evas_common_font_query_size(fn, text, intl_props, cx, ch); }