From 52ca712a14b4e0a2cde4a2a214393d2ed360dfdd Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 10 Nov 2011 12:11:17 +0000 Subject: [PATCH] Evas font: Fix clang errors. http://dev.enlightenment.fr/~discomfitor/evas-2011-11-09/report-qpiPpZ.html#EndPath SVN revision: 65019 --- .../src/lib/engines/common/evas_font_query.c | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/legacy/evas/src/lib/engines/common/evas_font_query.c b/legacy/evas/src/lib/engines/common/evas_font_query.c index 8852c1b1e1..af2cc844f4 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_query.c +++ b/legacy/evas/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; + } } } }