[MPlayer-cvslog] r23188 - in trunk/libass: ass_cache.h ass_render.c

eugeni subversion at mplayerhq.hu
Tue May 1 16:29:28 CEST 2007


Author: eugeni
Date: Tue May  1 16:29:28 2007
New Revision: 23188

Log:
Bugfix: glyph cache depends on border width, because it contains outline_glyph
(glyph border obtained with FT_Glyph_StrokeBorder) since r23043.


Modified:
   trunk/libass/ass_cache.h
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_cache.h
==============================================================================
--- trunk/libass/ass_cache.h	(original)
+++ trunk/libass/ass_cache.h	Tue May  1 16:29:28 2007
@@ -66,6 +66,7 @@ typedef struct glyph_hash_key_s {
 	int bold, italic;
 	unsigned scale_x, scale_y; // 16.16
 	FT_Vector advance; // subpixel shift vector
+	unsigned outline; // border width, 16.16
 } glyph_hash_key_t;
 
 typedef struct glyph_hash_val_s {

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Tue May  1 16:29:28 2007
@@ -1237,6 +1237,7 @@ static void get_outline_glyph(int symbol
 	key.advance = *advance;
 	key.bold = render_context.bold;
 	key.italic = render_context.italic;
+	key.outline = render_context.border * 0xFFFF;
 
 	info->glyph = info->outline_glyph = 0;
 



More information about the MPlayer-cvslog mailing list