aboutsummaryrefslogtreecommitdiffhomepage
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authorGravatar eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-19 17:40:31 +0000
committerGravatar eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-19 17:40:31 +0000
commit0c1c5e7ea2e1d91e2a20944725c1e1e84d9fc639 (patch)
tree44d65d1cd81ec7b1d270f62b6229374b9aa126ca /libass/ass_render.c
parent15ea14e08ab008836b5f365e6813f36056a00e5e (diff)
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
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c2
1 files changed, 2 insertions, 0 deletions
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