From: tasn Date: Thu, 10 Nov 2011 12:11:17 +0000 (+0000) Subject: Evas font: Fix clang errors. X-Git-Tag: accepted/2.0/20130306.225542~178^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5b38e8a9f0758d457fb27c4a4d96cdb9a2492ba;p=profile%2Fivi%2Fevas.git Evas font: Fix clang errors. http://dev.enlightenment.fr/~discomfitor/evas-2011-11-09/report-qpiPpZ.html#EndPath git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@65019 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 8852c1b..af2cc84 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -738,26 +738,26 @@ evas_common_font_query_last_up_to_pos(RGBA_Font *fn, const Evas_Text_Props *text } gli += text_props->len - 1; - } - for (i = text_props->len - 1 ; i >= 0 ; i--, gli--) - { - pen_x = full_adv - (gli->pen_after - start_pen); - /* If invisible, skip */ - if (gli->index == 0) continue; - if ((x >= pen_x) && - (((i == 0) && (x <= full_adv)) || - (x <= (full_adv - (gli[-1].pen_after - start_pen)))) && - (y >= -asc) && (y <= desc)) + for (i = text_props->len - 1 ; i >= 0 ; i--, gli--) { + pen_x = full_adv - (gli->pen_after - start_pen); + /* If invisible, skip */ + if (gli->index == 0) continue; + if ((x >= pen_x) && + (((i == 0) && (x <= full_adv)) || + (x <= (full_adv - (gli[-1].pen_after - start_pen)))) && + (y >= -asc) && (y <= desc)) + { #ifdef OT_SUPPORT - ret = EVAS_FONT_OT_POS_GET( - text_props->info->ot[text_props->start + i]) - - text_props->text_offset; + ret = EVAS_FONT_OT_POS_GET( + text_props->info->ot[text_props->start + i]) - + text_props->text_offset; #else - ret = text_props->text_len - i - 1; + ret = text_props->text_len - i - 1; #endif - goto end; + goto end; + } } } }