fix binary search for "bitmap font drawing chars" to actually work all

the time! :) (this went in since last release so no chlog)



SVN revision: 73405
This commit is contained in:
Carsten Haitzler 2012-07-06 09:53:58 +00:00
parent e468bdd391
commit 3cc270844b
1 changed files with 2 additions and 2 deletions

View File

@ -633,14 +633,14 @@ evas_common_get_char_index(RGBA_Font_Int* fi, Eina_Unicode gl)
if (gl > v)
{
min = i;
if ((max - min) == 2) i = max;
if ((max - min) == 1) i = max;
else i = (min + max) / 2;
}
// if glyph below out position
else if (gl < v)
{
max = i;
if ((max - min) == 2) i = min;
if ((max - min) == 1) i = min;
else i = (min + max) / 2;
}
}