forked from enlightenment/efl
Fix generation of FONT_DEBUG response
SVN revision: 72707
This commit is contained in:
parent
6aace19c0d
commit
74d8ed3c01
|
@ -1871,7 +1871,8 @@ _font_entry_debug_size_cb(const Eina_Hash *hash __UNUSED__, const void *key __UN
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_font_entry_debug_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED__, void *data, void *fdata)
|
_font_entry_debug_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED__, void *data, void *fdata)
|
||||||
{
|
{
|
||||||
char *buf = fdata;
|
char **pos = fdata;
|
||||||
|
char *buf = *pos;
|
||||||
Font_Entry *fe = data;
|
Font_Entry *fe = data;
|
||||||
Font_Cache *fc;
|
Font_Cache *fc;
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
|
@ -1964,6 +1965,7 @@ _font_entry_debug_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*pos = buf;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1974,6 +1976,7 @@ _cserve2_cache_font_debug(unsigned int rid, unsigned int *size)
|
||||||
char *buf, *pos;
|
char *buf, *pos;
|
||||||
struct _debug_info di;
|
struct _debug_info di;
|
||||||
di.size = sizeof(msg);
|
di.size = sizeof(msg);
|
||||||
|
di.nfonts = 0;
|
||||||
|
|
||||||
memset(&msg, 0, sizeof(msg));
|
memset(&msg, 0, sizeof(msg));
|
||||||
|
|
||||||
|
@ -2000,7 +2003,7 @@ _cserve2_cache_font_debug(unsigned int rid, unsigned int *size)
|
||||||
memcpy(pos, &di.nfonts, sizeof(unsigned int));
|
memcpy(pos, &di.nfonts, sizeof(unsigned int));
|
||||||
pos += sizeof(unsigned int);
|
pos += sizeof(unsigned int);
|
||||||
|
|
||||||
eina_hash_foreach(font_entries, _font_entry_debug_cb, pos);
|
eina_hash_foreach(font_entries, _font_entry_debug_cb, &pos);
|
||||||
|
|
||||||
*size = di.size;
|
*size = di.size;
|
||||||
return buf;
|
return buf;
|
||||||
|
|
Loading…
Reference in New Issue