forked from enlightenment/efl
shutting down font systems eh? :) that's cool - but lets make it nestable for
multiple canvases in 1 app :) SVN revision: 8366
This commit is contained in:
parent
c8d152ef0a
commit
a6bb664833
|
@ -8,10 +8,14 @@ evas_common_font_init(void)
|
|||
{
|
||||
int error;
|
||||
|
||||
if (initialised) return;
|
||||
initialised++;
|
||||
if (initialised != 1) return;
|
||||
error = FT_Init_FreeType(&ft_lib);
|
||||
if (error) return;
|
||||
initialised = 1;
|
||||
if (error)
|
||||
{
|
||||
initialised--;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -19,11 +23,9 @@ evas_common_font_shutdown(void)
|
|||
{
|
||||
int error;
|
||||
|
||||
if (!initialised) return;
|
||||
|
||||
initialised--;
|
||||
if (initialised != 0) return;
|
||||
error = FT_Done_FreeType(ft_lib);
|
||||
if (error) return;
|
||||
initialised = 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue