do \
{ \
int visible = 1; \
- for (char_index = text_props->start ; char_index < text_props->start + text_props->len ; char_index++) \
+ for (char_index = 0 ; char_index < text_props->len ; char_index++) \
{
/**
char_index = 0; \
_char_index_d = 1; \
} \
- char_index += text_props->start; \
- _i += text_props->start; \
- for ( ; _i > text_props->start ; char_index += _char_index_d, _i--) \
+ for ( ; _i > 0 ; char_index += _char_index_d, _i--) \
{
#else
#define EVAS_FONT_WALK_TEXT_LOGICAL_START() EVAS_FONT_WALK_TEXT_VISUAL_START()
#define EVAS_FONT_WALK_PEN_Y (EVAS_FONT_ROUND_26_6_TO_INT(_pen_y))
#define EVAS_FONT_WALK_Y_ADV (0)
#define EVAS_FONT_WALK_IS_LAST \
- (char_index + 1 == text_props->start + text_props->len)
+ (char_index + 1 == text_props->len)
#define EVAS_FONT_WALK_IS_FIRST \
(!char_index)
#define EVAS_FONT_WALK_LEN (text_props->len)
goto end;
}
- position += text_props->start;
Evas_Coord cluster_start, last_end;
int prev_cluster = -1;
int found = 0, items = 1, item_pos = 1;
int prev_cluster = -1;
int found = 0, items = 1, item_pos = 1;
int last_is_visible = 1;
- position += text_props->start;
EVAS_FONT_WALK_TEXT_VISUAL_START()
{
EVAS_FONT_WALK_TEXT_WORK();
}
end:
- return ret_val - text_props->start;
+ return ret_val;
}
/* position of the char after the last char in the text that will fit in xy.
*/
EAPI int
-evas_common_font_query_last_up_to_pos(RGBA_Font *fn, const Eina_Unicode *in_text, const Evas_Text_Props *text_props, int x, int y)
+evas_common_font_query_last_up_to_pos(RGBA_Font *fn, const Eina_Unicode *in_text, const Evas_Text_Props *text_props __UNUSED__, int x, int y)
{
int asc, desc;
int ret=-1;
end:
- return ret - text_props->start;
+ return ret;
}