SVN revision: 10933
This commit is contained in:
Carsten Haitzler 2004-07-20 11:07:06 +00:00
parent c724dd1964
commit 3e8511b2f3
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ evas_common_font_utf8_get_next(unsigned char *buf, int *iindex)
{
/* 3 byte */
if (((d2 = buf[index++]) & 0xc0) != 0x80 ||
((d3 = buf[index++]) & 0xc0) != 0x80)r = d & 0x0f; /* copy lower 4 */
((d3 = buf[index++]) & 0xc0) != 0x80)
return 0;
r = d & 0x0f; /* copy lower 4 */
r <<= 6;
r |= (d2 & 0x3f);
r <<= 6;