changeset 23011:365eef1fc4f0

Disable caching of rotated glyphs. The following commits will add perspective distortion to the glyphs rotated with \frx and \fry. Somewhere along the way correct caching of such glyphs will become impossible, but in the end everything will be fine.
author eugeni
date Fri, 20 Apr 2007 22:49:48 +0000
parents 74efb0fa8a0b
children 62f3785870c2
files libass/ass_render.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Fri Apr 20 21:49:49 2007 +0000
+++ b/libass/ass_render.c	Fri Apr 20 22:49:48 2007 +0000
@@ -405,6 +405,9 @@
 				FT_Done_Glyph(text_info->glyphs[i].outline_glyph);
 
 			// cache
+			if (text_info->glyphs[i].hash_key.frx == 0 &&
+			    text_info->glyphs[i].hash_key.fry == 0 &&
+			    text_info->glyphs[i].hash_key.frz == 0) {
 			hash_val.bbox_scaled = text_info->glyphs[i].bbox;
 			hash_val.bm_o = text_info->glyphs[i].bm_o;
 			hash_val.bm = text_info->glyphs[i].bm;
@@ -412,6 +415,7 @@
 			hash_val.advance.x = text_info->glyphs[i].advance.x;
 			hash_val.advance.y = text_info->glyphs[i].advance.y;
 			cache_add_glyph(&(text_info->glyphs[i].hash_key), &hash_val);
+			}
 
 		}
 	}