hmm math just a little off

SVN revision: 9970
This commit is contained in:
Carsten Haitzler 2004-04-29 03:44:39 +00:00
parent 76243ee847
commit 988e608f74
1 changed files with 2 additions and 2 deletions

View File

@ -253,8 +253,8 @@ evas_common_font_query_text_at_pos(RGBA_Font *fn, const char *text, int x, int y
chr_w += (chr_x - prev_chr_end);
chr_x = prev_chr_end;
}
if ((x >= chr_x) && (x <= (chr_x + chr_w)) &&
(y > -asc) && (y < desc))
if ((x >= chr_x) && (x < (chr_x + chr_w)) &&
(y >= -asc) && (y < desc))
{
if (cx) *cx = chr_x;
if (cy) *cy = -asc;