forked from enlightenment/efl
and invalidate held data if u change image file or font (font/size)
SVN revision: 4636
This commit is contained in:
parent
411ec99a57
commit
47825eb89b
|
@ -134,6 +134,7 @@ evas_set_image_file(Evas e, Evas_Object o, char *file)
|
|||
(oo->current.image.h == 0)
|
||||
)
|
||||
{
|
||||
_evas_free_image_renderer_data(e, o);
|
||||
if (oo->current.file)
|
||||
free(oo->current.file);
|
||||
oo->previous.file = NULL;
|
||||
|
|
|
@ -928,6 +928,7 @@ evas_set_font(Evas e, Evas_Object o, char *font, int size)
|
|||
if ((oo->current.font) && (!strcmp(oo->current.font, font))
|
||||
&& (size == oo->current.size))
|
||||
return;
|
||||
_evas_free_text_renderer_data(e, o);
|
||||
if (oo->current.font) free(oo->current.font);
|
||||
oo->current.font = strdup(font);
|
||||
oo->previous.font = NULL;
|
||||
|
|
Loading…
Reference in New Issue