forked from enlightenment/efl
Evas font-engine: Fix usage of font cache (= -> ==).
SVN revision: 59344
This commit is contained in:
parent
7d1f21946a
commit
909e11f49f
|
@ -329,7 +329,7 @@ evas_font_load(Evas *evas, const char *name, const char *source, int size)
|
||||||
if (((!source) && (!fd->source)) ||
|
if (((!source) && (!fd->source)) ||
|
||||||
((source) && (fd->source) && (!strcmp(source, fd->source))))
|
((source) && (fd->source) && (!strcmp(source, fd->source))))
|
||||||
{
|
{
|
||||||
if ((size == fd->size) && (wanted_rend = fd->wanted_rend))
|
if ((size == fd->size) && (wanted_rend == fd->wanted_rend))
|
||||||
{
|
{
|
||||||
fonts_cache = eina_list_promote_list(fonts_cache, l);
|
fonts_cache = eina_list_promote_list(fonts_cache, l);
|
||||||
fd->ref++;
|
fd->ref++;
|
||||||
|
@ -354,7 +354,7 @@ evas_font_load(Evas *evas, const char *name, const char *source, int size)
|
||||||
if (((!source) && (!fd->source)) ||
|
if (((!source) && (!fd->source)) ||
|
||||||
((source) && (fd->source) && (!strcmp(source, fd->source))))
|
((source) && (fd->source) && (!strcmp(source, fd->source))))
|
||||||
{
|
{
|
||||||
if ((size == fd->size) && (wanted_rend = fd->wanted_rend))
|
if ((size == fd->size) && (wanted_rend == fd->wanted_rend))
|
||||||
{
|
{
|
||||||
fonts_zero = eina_list_remove_list(fonts_zero, l);
|
fonts_zero = eina_list_remove_list(fonts_zero, l);
|
||||||
fonts_cache = eina_list_prepend(fonts_cache, fd);
|
fonts_cache = eina_list_prepend(fonts_cache, fd);
|
||||||
|
|
Loading…
Reference in New Issue