Mercurial > mplayer.hg
changeset 22261:17977e60f958
Fix bounding box calculation with \fscx/\fscy.
author | eugeni |
---|---|
date | Mon, 19 Feb 2007 18:37:54 +0000 |
parents | ae6fe8a910dd |
children | 184e92166a6a |
files | libass/ass_render.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Mon Feb 19 18:31:05 2007 +0000 +++ b/libass/ass_render.c Mon Feb 19 18:37:54 2007 +0000 @@ -1293,9 +1293,9 @@ if (i < text_info.length) { glyph_info_t* cur = text_info.glyphs + i; if (cur->asc > max_asc) - max_asc = cur->asc * render_context.scale_y; + max_asc = cur->asc; if (cur->desc > max_desc) - max_desc = cur->desc * render_context.scale_y; + max_desc = cur->desc; } } } @@ -1739,6 +1739,8 @@ ass_font_get_asc_desc(render_context.font, code, &text_info.glyphs[text_info.length].asc, &text_info.glyphs[text_info.length].desc); + text_info.glyphs[text_info.length].asc *= render_context.scale_y; + text_info.glyphs[text_info.length].desc *= render_context.scale_y; text_info.length++;