[MPlayer-cvslog] r21632 - trunk/libass/ass_font.c

eugeni subversion at mplayerhq.hu
Sat Dec 16 20:24:01 CET 2006


Author: eugeni
Date: Sat Dec 16 20:24:01 2006
New Revision: 21632

Modified:
   trunk/libass/ass_font.c

Log:
FT_Set_Transform is fast enough to be called once for each glyph.


Modified: trunk/libass/ass_font.c
==============================================================================
--- trunk/libass/ass_font.c	(original)
+++ trunk/libass/ass_font.c	Sat Dec 16 20:24:01 2006
@@ -119,21 +119,13 @@
 
 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v)
 {
-	if (font->m.xx != m->xx ||
-	    font->m.xy != m->xy ||
-	    font->m.yx != m->yx ||
-	    font->m.yy != m->yy ||
-	    font->v.x != v->x ||
-	    font->v.y != v->y
-	    ) {
-		font->m.xx = m->xx;
-		font->m.xy = m->xy;
-		font->m.yx = m->yx;
-		font->m.yy = m->yy;
-		font->v.x = v->x;
-		font->v.y = v->y;
-		FT_Set_Transform(font->face, &font->m, &font->v);
-	}
+	font->m.xx = m->xx;
+	font->m.xy = m->xy;
+	font->m.yx = m->yx;
+	font->m.yy = m->yy;
+	font->v.x = v->x;
+	font->v.y = v->y;
+	FT_Set_Transform(font->face, &font->m, &font->v);
 }
 
 void ass_font_set_size(ass_font_t* font, int size)



More information about the MPlayer-cvslog mailing list