Mercurial > mplayer.hg
changeset 19904:640093581779
Calculate text bounding box in such way that it does not depend on the height
of individual glyphs.
author | eugeni |
---|---|
date | Tue, 19 Sep 2006 17:40:31 +0000 |
parents | 0fd1b699210c |
children | 5a24682d9dd5 |
files | libass/ass_render.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Tue Sep 19 14:17:59 2006 +0000 +++ b/libass/ass_render.c Tue Sep 19 17:40:31 2006 +0000 @@ -1686,6 +1686,8 @@ // determing text bounding box compute_string_bbox(&text_info, &bbox); + bbox.yMin = - (text_info.lines[0].asc >> 6); + bbox.yMax = (text_info.height - text_info.lines[0].asc) >> 6; // determine device coordinates for text