Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common
Modified Files:
evas_font_main.c
Log Message:
dont xloop...
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_font_main.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- evas_font_main.c 20 Jul 2004 11:07:06 -0000 1.14
+++ evas_font_main.c 1 Feb 2005 14:48:28 -0000 1.15
@@ -102,7 +102,7 @@
*
* Returns 0 to indicate an error (e.g. invalid UTF8)
*/
- int index = *iindex, r;
+ int index = *iindex, r, istart = *iindex;
unsigned char d = buf[index++], d2, d3, d4;
if (!d)
@@ -148,7 +148,27 @@
r <<= 6;
r |= (d4 & 0x3f);
}
+#if 0
+ index = istart - 1;
+ d = buf[index];
+ if (!(d & 0x80))
+ *iindex = index;
+ else
+ {
+ while (index > 0)
+ {
+ index--;
+ d = buf[index];
+ if ((d & 0xc0) != 0x80)
+ {
+ *iindex = index;
+ return r;
+ }
+ }
+ }
+#else
*iindex = index;
+#endif
return r;
}
@@ -210,6 +230,7 @@
r <<= 6;
r |= (d4 & 0x3f);
}
+#if 0
index = istart - 1;
d = buf[index];
if (!(d & 0x80))
@@ -227,5 +248,8 @@
}
}
}
+#else
+ *iindex = index;
+#endif
return r;
}
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs