diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-16 13:08:17 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-16 13:08:17 +0000 |
commit | 85933b51d3aec4a524a4e4119318eefb16421fa6 (patch) | |
tree | 71c7545d3067f6a0eb87837f698ce338cf94eeec /libass/ass_cache.c | |
parent | 158ddc48afdd7104d0d9a944ded9b1d01a208922 (diff) | |
download | libass-85933b51d3aec4a524a4e4119318eefb16421fa6.tar.bz2 libass-85933b51d3aec4a524a4e4119318eefb16421fa6.tar.xz |
Store bitmap glyphs in a separate struct, instead of FreeType's internal buffer.
This is required for various bitmap modifications (like blur, outline and shadow).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19852 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_cache.c')
-rw-r--r-- | libass/ass_cache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libass/ass_cache.c b/libass/ass_cache.c index 64f915b..2dce591 100644 --- a/libass/ass_cache.c +++ b/libass/ass_cache.c @@ -2,11 +2,13 @@ #include <ft2build.h> #include FT_FREETYPE_H +#include FT_GLYPH_H #include <assert.h> #include "mp_msg.h" #include "ass_fontconfig.h" +#include "ass_bitmap.h" #include "ass_cache.h" @@ -197,8 +199,8 @@ void ass_glyph_cache_done(void) glyph_hash_item_t* item = glyph_hash_root[i]; while (item) { glyph_hash_item_t* next = item->next; - if (item->val.glyph) FT_Done_Glyph(item->val.glyph); - if (item->val.outline_glyph) FT_Done_Glyph(item->val.outline_glyph); + if (item->val.bm) ass_free_bitmap(item->val.bm); + if (item->val.bm_o) ass_free_bitmap(item->val.bm_o); free(item); item = next; } |