forked from enlightenment/efl
parent
8798313dcc
commit
51e9b8358f
|
@ -8,3 +8,4 @@ Yuri Hudobin <glassy_ape@users.sourceforge.net>
|
||||||
Nathan Ingersoll <ningerso@d.umn.edu>
|
Nathan Ingersoll <ningerso@d.umn.edu>
|
||||||
Willem Monsuwe <willem@stack.nl>
|
Willem Monsuwe <willem@stack.nl>
|
||||||
Jose O Gonzalez <jose_ogp@juno.com>
|
Jose O Gonzalez <jose_ogp@juno.com>
|
||||||
|
Bernhard Nemec <Bernhard.Nemec@viasyshc.com>
|
||||||
|
|
|
@ -115,8 +115,7 @@ evas_common_font_utf8_get_next(unsigned char *buf, int *iindex)
|
||||||
if ((d & 0xe0) == 0xc0)
|
if ((d & 0xe0) == 0xc0)
|
||||||
{
|
{
|
||||||
/* 2 byte */
|
/* 2 byte */
|
||||||
d2 = buf[index++];
|
if (((d2 = buf[index++]) & 0xc0) != 0x80)
|
||||||
if ((d2 & 0xc0) != 0x80)
|
|
||||||
return 0;
|
return 0;
|
||||||
r = d & 0x1f; /* copy lower 5 */
|
r = d & 0x1f; /* copy lower 5 */
|
||||||
r <<= 6;
|
r <<= 6;
|
||||||
|
@ -125,12 +124,8 @@ evas_common_font_utf8_get_next(unsigned char *buf, int *iindex)
|
||||||
else if ((d & 0xf0) == 0xe0)
|
else if ((d & 0xf0) == 0xe0)
|
||||||
{
|
{
|
||||||
/* 3 byte */
|
/* 3 byte */
|
||||||
d2 = buf[index++];
|
if (((d2 = buf[index++]) & 0xc0) != 0x80 ||
|
||||||
d3 = buf[index++];
|
((d3 = buf[index++]) & 0xc0) != 0x80)r = d & 0x0f; /* copy lower 4 */
|
||||||
if ((d2 & 0xc0) != 0x80 ||
|
|
||||||
(d3 & 0xc0) != 0x80)
|
|
||||||
return 0;
|
|
||||||
r = d & 0x0f; /* copy lower 4 */
|
|
||||||
r <<= 6;
|
r <<= 6;
|
||||||
r |= (d2 & 0x3f);
|
r |= (d2 & 0x3f);
|
||||||
r <<= 6;
|
r <<= 6;
|
||||||
|
@ -139,12 +134,9 @@ evas_common_font_utf8_get_next(unsigned char *buf, int *iindex)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* 4 byte */
|
/* 4 byte */
|
||||||
d2 = buf[index++];
|
if (((d2 = buf[index++]) & 0xc0) != 0x80 ||
|
||||||
d3 = buf[index++];
|
((d3 = buf[index++]) & 0xc0) != 0x80 ||
|
||||||
d4 = buf[index++];
|
((d4 = buf[index++]) & 0xc0) != 0x80)
|
||||||
if ((d2 & 0xc0) != 0x80 ||
|
|
||||||
(d3 & 0xc0) != 0x80 ||
|
|
||||||
(d4 & 0xc0) != 0x80)
|
|
||||||
return 0;
|
return 0;
|
||||||
r = d & 0x0f; /* copy lower 4 */
|
r = d & 0x0f; /* copy lower 4 */
|
||||||
r <<= 6;
|
r <<= 6;
|
||||||
|
|
|
@ -386,8 +386,8 @@ evas_engine_gl_x11_output_flush(void *data)
|
||||||
#else
|
#else
|
||||||
glXSwapBuffers(re->win->disp, re->win->win);
|
glXSwapBuffers(re->win->disp, re->win->win);
|
||||||
#endif
|
#endif
|
||||||
glFlush();
|
// glFlush();
|
||||||
glXWaitGL();
|
// glXWaitGL();
|
||||||
// XSync(re->win->disp, False);
|
// XSync(re->win->disp, False);
|
||||||
// printf("SYNC! %i\n", fr++);
|
// printf("SYNC! %i\n", fr++);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue