summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-20 22:49:48 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-20 22:49:48 +0000
commit1a1ba22f93982d4ebcc0176011766c50d600d59e (patch)
treeaaaeb84ec80626224685540ab456ab5419bc0ca5
parentdfd0190a6df68a8c595da032df6c9e38a3164afd (diff)
downloadmpv-1a1ba22f93982d4ebcc0176011766c50d600d59e.tar.bz2
mpv-1a1ba22f93982d4ebcc0176011766c50d600d59e.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23029 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libass/ass_render.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 8785726dbe..c6ed514a20 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -405,6 +405,9 @@ static ass_image_t* render_text(text_info_t* text_info, int dst_x, int dst_y)
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 @@ static ass_image_t* render_text(text_info_t* text_info, int dst_x, int dst_y)
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);
+ }
}
}