forked from enlightenment/efl
Evas font-engine: add a function to just ref text props.
SVN revision: 56521
This commit is contained in:
parent
07004f537a
commit
34c6617e5a
|
@ -31,10 +31,16 @@ evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst,
|
||||||
const Evas_Text_Props *src)
|
const Evas_Text_Props *src)
|
||||||
{
|
{
|
||||||
memcpy(dst, src, sizeof(Evas_Text_Props));
|
memcpy(dst, src, sizeof(Evas_Text_Props));
|
||||||
|
evas_common_text_props_content_ref(dst);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
evas_common_text_props_content_ref(Evas_Text_Props *props)
|
||||||
|
{
|
||||||
#ifdef OT_SUPPORT
|
#ifdef OT_SUPPORT
|
||||||
if (dst->ot_data)
|
if (props->ot_data)
|
||||||
{
|
{
|
||||||
evas_common_font_ot_props_ref(dst->ot_data);
|
evas_common_font_ot_props_ref(props->ot_data);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,9 @@ void
|
||||||
evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst,
|
evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst,
|
||||||
const Evas_Text_Props *src);
|
const Evas_Text_Props *src);
|
||||||
|
|
||||||
|
void
|
||||||
|
evas_common_text_props_content_ref(Evas_Text_Props *props);
|
||||||
|
|
||||||
void
|
void
|
||||||
evas_common_text_props_content_unref(Evas_Text_Props *props);
|
evas_common_text_props_content_unref(Evas_Text_Props *props);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue