From 0c1c5e7ea2e1d91e2a20944725c1e1e84d9fc639 Mon Sep 17 00:00:00 2001 From: eugeni Date: Tue, 19 Sep 2006 17:40:31 +0000 Subject: Calculate text bounding box in such way that it does not depend on the height of individual glyphs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19910 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libass/ass_render.c') diff --git a/libass/ass_render.c b/libass/ass_render.c index 4bf9103d79..3e0d4a308b 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1686,6 +1686,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images) // 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 -- cgit v1.2.3