diff options
author | Carsten Haitzler <raster@rasterman.com> | 2012-07-06 09:53:58 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2012-07-06 09:53:58 +0000 |
commit | 3cc270844bb3c2ed4f065021a93060ea04c37f4e (patch) | |
tree | 42a8eeab8a77d9b70bd87086f6651064750c2e47 /legacy/evas/src/lib/engines/common/evas_font_main.c | |
parent | e468bdd3913c354437fb536d28946763ee31a107 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | legacy/evas/src/lib/engines/common/evas_font_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_font_main.c b/legacy/evas/src/lib/engines/common/evas_font_main.c index e51a935bff..1977337872 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_main.c +++ b/legacy/evas/src/lib/engines/common/evas_font_main.c | |||
@@ -633,14 +633,14 @@ evas_common_get_char_index(RGBA_Font_Int* fi, Eina_Unicode gl) | |||
633 | if (gl > v) | 633 | if (gl > v) |
634 | { | 634 | { |
635 | min = i; | 635 | min = i; |
636 | if ((max - min) == 2) i = max; | 636 | if ((max - min) == 1) i = max; |
637 | else i = (min + max) / 2; | 637 | else i = (min + max) / 2; |
638 | } | 638 | } |
639 | // if glyph below out position | 639 | // if glyph below out position |
640 | else if (gl < v) | 640 | else if (gl < v) |
641 | { | 641 | { |
642 | max = i; | 642 | max = i; |
643 | if ((max - min) == 2) i = min; | 643 | if ((max - min) == 1) i = min; |
644 | else i = (min + max) / 2; | 644 | else i = (min + max) / 2; |
645 | } | 645 | } |
646 | } | 646 | } |