changeset 21616:2704273f398d

FT_Set_Transform is fast enough to be called once for each glyph.
author eugeni
date Sat, 16 Dec 2006 19:24:01 +0000
parents 62989854d340
children 10f001e35b91
files libass/ass_font.c
diffstat 1 files changed, 7 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_font.c	Sat Dec 16 19:19:27 2006 +0000
+++ b/libass/ass_font.c	Sat Dec 16 19:24:01 2006 +0000
@@ -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)